src/render/SDL_render.c
changeset 8249 294f28074ecc
parent 8149 681eb46b8ac4
child 8583 fb2933ca805f
equal deleted inserted replaced
8248:427d0a6f5af7 8249:294f28074ecc
  1874 {
  1874 {
  1875     SDL_Renderer *renderer;
  1875     SDL_Renderer *renderer;
  1876 
  1876 
  1877     CHECK_TEXTURE_MAGIC(texture, -1);
  1877     CHECK_TEXTURE_MAGIC(texture, -1);
  1878     renderer = texture->renderer;
  1878     renderer = texture->renderer;
  1879     if (renderer && renderer->GL_UnbindTexture) {
  1879     if (texture->native) {
       
  1880         return SDL_GL_UnbindTexture(texture->native);
       
  1881     } else if (renderer && renderer->GL_UnbindTexture) {
  1880         return renderer->GL_UnbindTexture(renderer, texture);
  1882         return renderer->GL_UnbindTexture(renderer, texture);
  1881     }
  1883     }
  1882 
  1884 
  1883     return SDL_Unsupported();
  1885     return SDL_Unsupported();
  1884 }
  1886 }