Don't use glDisable(GL_TEXTURE_2D) in GLES2 renderer.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 17 Apr 2013 11:45:50 -0400
changeset 7075 f4a3c5a68119
parent 7074 0545811b3543
child 7076 1666f7a7494e
Don't use glDisable(GL_TEXTURE_2D) in GLES2 renderer. Fixes Bugzilla #1799.
src/render/opengles2/SDL_render_gles2.c
--- a/src/render/opengles2/SDL_render_gles2.c	Wed Apr 17 08:09:11 2013 -0700
+++ b/src/render/opengles2/SDL_render_gles2.c	Wed Apr 17 11:45:50 2013 -0400
@@ -1564,8 +1564,7 @@
     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;
 }