disable multisampling in case of problems

This commit is contained in:
Zeno Rogue 2017-09-04 20:42:56 +02:00
parent 85c46220f6
commit 73841570ea
1 changed files with 2 additions and 0 deletions

View File

@ -998,6 +998,8 @@ void setvideomode() {
addMessage("Failed to set the graphical mode: "+its(vid.xres)+"x"+its(vid.yres)+(vid.full ? " fullscreen" : " windowed"));
vid.xres = 640;
vid.yres = 480;
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0);
vid.antialias &= ~AA_MULTI;
s = SDL_SetVideoMode(vid.xres, vid.yres, 32, flags | SDL_RESIZABLE);
}