Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't use glDisable(GL_TEXTURE_2D) in GLES2 renderer.
Browse files Browse the repository at this point in the history
  Fixes Bugzilla #1799.
  • Loading branch information
icculus committed Apr 17, 2013
1 parent 5239c67 commit de5bfb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit de5bfb1

Please sign in to comment.