src/render/SDL_render.c
changeset 8249 294f28074ecc
parent 8149 681eb46b8ac4
child 8583 fb2933ca805f
     1.1 --- a/src/render/SDL_render.c	Mon Feb 24 11:24:48 2014 -0500
     1.2 +++ b/src/render/SDL_render.c	Mon Feb 24 18:57:22 2014 -0300
     1.3 @@ -1876,7 +1876,9 @@
     1.4  
     1.5      CHECK_TEXTURE_MAGIC(texture, -1);
     1.6      renderer = texture->renderer;
     1.7 -    if (renderer && renderer->GL_UnbindTexture) {
     1.8 +    if (texture->native) {
     1.9 +        return SDL_GL_UnbindTexture(texture->native);
    1.10 +    } else if (renderer && renderer->GL_UnbindTexture) {
    1.11          return renderer->GL_UnbindTexture(renderer, texture);
    1.12      }
    1.13