Don't use glDisable(GL_TEXTURE_2D) in GLES2 renderer.
Fixes Bugzilla #1799. --HG-- extra : rebase_source : bdcc78e0cbdb2879c7ae24666bea567ce24dcd74
This commit is contained in:
parent
56c27c7be9
commit
71b29b3822
1 changed files with 1 additions and 2 deletions
|
@ -1564,8 +1564,7 @@ static int GLES2_UnbindTexture (SDL_Renderer * renderer, SDL_Texture *texture) {
|
|||
GLES2_TextureData *texturedata = (GLES2_TextureData *)texture->driverdata;
|
||||
GLES2_ActivateRenderer(renderer);
|
||||
|
||||
data->glActiveTexture(GL_TEXTURE0);
|
||||
data->glDisable(texturedata->texture_type);
|
||||
data->glBindTexture(texturedata->texture_type, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue