mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Back out change initializing renderer blend mode incorrectly.
This commit is contained in:
parent
fde7592ada
commit
9719f89db2
@ -1767,7 +1767,7 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data->drawstate.blend = SDL_BLENDMODE_NONE;
|
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
||||||
|
|
||||||
return renderer;
|
return renderer;
|
||||||
}
|
}
|
||||||
|
@ -1688,7 +1688,7 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||||||
/* This ended up causing video discrepancies between OpenGL and Direct3D */
|
/* This ended up causing video discrepancies between OpenGL and Direct3D */
|
||||||
/* data->glEnable(GL_LINE_SMOOTH); */
|
/* data->glEnable(GL_LINE_SMOOTH); */
|
||||||
|
|
||||||
data->drawstate.blend = SDL_BLENDMODE_NONE;
|
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
||||||
data->drawstate.shader = SHADER_INVALID;
|
data->drawstate.shader = SHADER_INVALID;
|
||||||
data->drawstate.color = 0xFFFFFFFF;
|
data->drawstate.color = 0xFFFFFFFF;
|
||||||
data->drawstate.clear_color = 0xFFFFFFFF;
|
data->drawstate.clear_color = 0xFFFFFFFF;
|
||||||
|
@ -1203,7 +1203,7 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
|||||||
data->glEnableClientState(GL_VERTEX_ARRAY);
|
data->glEnableClientState(GL_VERTEX_ARRAY);
|
||||||
data->glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
data->glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||||
|
|
||||||
data->drawstate.blend = SDL_BLENDMODE_NONE;
|
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
||||||
data->drawstate.color = 0xFFFFFFFF;
|
data->drawstate.color = 0xFFFFFFFF;
|
||||||
data->drawstate.clear_color = 0xFFFFFFFF;
|
data->drawstate.clear_color = 0xFFFFFFFF;
|
||||||
|
|
||||||
|
@ -2076,7 +2076,7 @@ GLES2_CreateRenderer(SDL_Window *window, Uint32 flags)
|
|||||||
data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_POSITION);
|
data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_POSITION);
|
||||||
data->glDisableVertexAttribArray(GLES2_ATTRIBUTE_TEXCOORD);
|
data->glDisableVertexAttribArray(GLES2_ATTRIBUTE_TEXCOORD);
|
||||||
|
|
||||||
data->drawstate.blend = SDL_BLENDMODE_NONE;
|
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
||||||
data->drawstate.color = 0xFFFFFFFF;
|
data->drawstate.color = 0xFFFFFFFF;
|
||||||
data->drawstate.clear_color = 0xFFFFFFFF;
|
data->drawstate.clear_color = 0xFFFFFFFF;
|
||||||
data->drawstate.projection[3][0] = -1.0f;
|
data->drawstate.projection[3][0] = -1.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user