opengl: Creating a texture trashes the cached texturing state, fix it.

Reference Issue #7194.
This commit is contained in:
Ryan C. Gordon 2023-11-23 20:00:01 -05:00
parent 0a6b5abf45
commit e9b4869372
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -458,6 +458,7 @@ static int GL_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
GL_ActivateRenderer(renderer);
renderdata->drawstate.texture = NULL; /* we trash this state. */
renderdata->drawstate.texturing = SDL_FALSE; /* we trash this state. */
if (texture->access == SDL_TEXTUREACCESS_TARGET &&
!renderdata->GL_EXT_framebuffer_object_supported) {