opengles 1: same fix as in bug #4433
This commit is contained in:
parent
428e686eb6
commit
5cc44ad65c
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue