mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 21:45:30 +00:00
opengl: Creating a texture trashes the cached texturing
state, fix it.
Reference Issue #7194.
This commit is contained in:
parent
0a6b5abf45
commit
e9b4869372
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue