only load shaders if we're using opengl

This commit is contained in:
Tim Felgentreff 2015-10-16 12:32:52 +02:00
parent 3a29810853
commit 9b15602578

View file

@ -892,7 +892,7 @@ static void SdlDoEvent(const EventCallback &callbacks, SDL_Event &event)
break;
case SDL_KEYDOWN:
if (event.key.keysym.sym == SDLK_BACKSLASH) {
if (UseOpenGL && event.key.keysym.sym == SDLK_BACKSLASH) {
LoadShaders();
break;
}