opengles 1: same fix as in bug #4433
authorSylvain Becker <sylvain.becker@gmail.com>
Sat, 29 Dec 2018 16:37:44 +0100
changeset 12485c3bc7d1f4179
parent 12484 06031bc24165
child 12486 7c0e0a340fc2
opengles 1: same fix as in bug #4433
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/opengles/SDL_render_gles.c	Sat Dec 29 16:34:50 2018 +0100
     1.2 +++ b/src/render/opengles/SDL_render_gles.c	Sat Dec 29 16:37:44 2018 +0100
     1.3 @@ -1013,6 +1013,13 @@
     1.4  
     1.5      GLES_ActivateRenderer(renderer);
     1.6  
     1.7 +    if (renderdata->drawstate.texture == texture) {
     1.8 +        renderdata->drawstate.texture = NULL;
     1.9 +    }
    1.10 +    if (renderdata->drawstate.target == texture) {
    1.11 +        renderdata->drawstate.target = NULL;
    1.12 +    }
    1.13 +
    1.14      if (!data) {
    1.15          return;
    1.16      }