Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
opengles 1: same fix as in bug #4433
  • Loading branch information
1bsyl committed Dec 29, 2018
1 parent 87b7636 commit ebd9efb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/render/opengles/SDL_render_gles.c
Expand Up @@ -1013,6 +1013,13 @@ GLES_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)

GLES_ActivateRenderer(renderer);

if (renderdata->drawstate.texture == texture) {
renderdata->drawstate.texture = NULL;
}
if (renderdata->drawstate.target == texture) {
renderdata->drawstate.target = NULL;
}

if (!data) {
return;
}
Expand Down

0 comments on commit ebd9efb

Please sign in to comment.