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

Commit

Permalink
Don't specify the texture unit when binding a texture, instead use wh…
Browse files Browse the repository at this point in the history
…atever has been set up by the application.

This matches behavior in the OpenGL and OpenGL ES 1.1 renderers.
  • Loading branch information
slouken committed Mar 3, 2013
1 parent 9995be2 commit bbe13d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -1580,7 +1580,6 @@ static int GLES2_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, flo
GLES2_TextureData *texturedata = (GLES2_TextureData *)texture->driverdata;
GLES2_ActivateRenderer(renderer);

data->glActiveTexture(GL_TEXTURE0);
data->glBindTexture(texturedata->texture_type, texturedata->texture);

if(texw) *texw = 1.0;
Expand Down

0 comments on commit bbe13d4

Please sign in to comment.