1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 01:16:50 +00:00

Merge pull request #100 from V02460/doublebuffer

Fix setting doublebuffering
This commit is contained in:
Zeno Rogue 2020-03-27 12:06:00 +01:00 committed by GitHub
commit a589b09fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1057,7 +1057,8 @@ EX void setvideomode() {
#if CAP_GL
if(vid.usingGL) {
flags = SDL_OPENGL | SDL_HWSURFACE | SDL_GL_DOUBLEBUFFER;
flags = SDL_OPENGL | SDL_HWSURFACE;
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
if(vsync_off) disable_vsync();
if(vid.antialias & AA_MULTI) {