src/render/opengles2/SDL_render_gles2.c
changeset 7075 f4a3c5a68119
parent 7037 3fedf1f25b94
child 7141 e276777b4247
--- 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;
 }