src/render/opengles2/SDL_render_gles2.c
changeset 7075 f4a3c5a68119
parent 7037 3fedf1f25b94
child 7141 e276777b4247
equal deleted inserted replaced
7074:0545811b3543 7075:f4a3c5a68119
  1562 static int GLES2_UnbindTexture (SDL_Renderer * renderer, SDL_Texture *texture) {
  1562 static int GLES2_UnbindTexture (SDL_Renderer * renderer, SDL_Texture *texture) {
  1563     GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
  1563     GLES2_DriverContext *data = (GLES2_DriverContext *)renderer->driverdata;
  1564     GLES2_TextureData *texturedata = (GLES2_TextureData *)texture->driverdata;
  1564     GLES2_TextureData *texturedata = (GLES2_TextureData *)texture->driverdata;
  1565     GLES2_ActivateRenderer(renderer);
  1565     GLES2_ActivateRenderer(renderer);
  1566 
  1566 
  1567     data->glActiveTexture(GL_TEXTURE0);
  1567     data->glBindTexture(texturedata->texture_type, 0);
  1568     data->glDisable(texturedata->texture_type);
       
  1569 
  1568 
  1570     return 0;
  1569     return 0;
  1571 }
  1570 }
  1572 
  1571 
  1573 
  1572