Fixes #2296 - SDL_GL_UnbindTexture segfaults (thanks Daniel Bünzli)