Skip to content
Permalink
Browse files

opengles 1: same fix as in bug #4433

  • Loading branch information
1bsyl committed Dec 29, 2018
1 parent 87b7636 commit ebd9efb3616d070d41a50651dfdd7e8b197d76bb
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/render/opengles/SDL_render_gles.c
@@ -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;
}

0 comments on commit ebd9efb

Please sign in to comment.