only load shaders if we're using opengl
This commit is contained in:
parent
3a29810853
commit
9b15602578
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue