opengl: Creating a texture trashes the cached texturing
state, fix it.
Reference Issue #7194.
(cherry picked from commit e9b4869372
)
This commit is contained in:
parent
dcf04559db
commit
b24d6bd59a
1 changed files with 1 additions and 0 deletions
|
@ -450,6 +450,7 @@ static int GL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Pr
|
||||||
GL_ActivateRenderer(renderer);
|
GL_ActivateRenderer(renderer);
|
||||||
|
|
||||||
renderdata->drawstate.texture = NULL; /* we trash this state. */
|
renderdata->drawstate.texture = NULL; /* we trash this state. */
|
||||||
|
renderdata->drawstate.texturing = SDL_FALSE; /* we trash this state. */
|
||||||
|
|
||||||
if (texture->access == SDL_TEXTUREACCESS_TARGET &&
|
if (texture->access == SDL_TEXTUREACCESS_TARGET &&
|
||||||
!renderdata->GL_EXT_framebuffer_object_supported) {
|
!renderdata->GL_EXT_framebuffer_object_supported) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue