mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
opengles 1: same fix as in bug #4433
This commit is contained in:
parent
87b7636918
commit
ebd9efb361
@ -1013,6 +1013,13 @@ GLES_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
|||||||
|
|
||||||
GLES_ActivateRenderer(renderer);
|
GLES_ActivateRenderer(renderer);
|
||||||
|
|
||||||
|
if (renderdata->drawstate.texture == texture) {
|
||||||
|
renderdata->drawstate.texture = NULL;
|
||||||
|
}
|
||||||
|
if (renderdata->drawstate.target == texture) {
|
||||||
|
renderdata->drawstate.target = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user