mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
Fix setting doublebuffering
This commit is contained in:
parent
bcc96ffa11
commit
f0cdc21dea
@ -1057,7 +1057,8 @@ EX void setvideomode() {
|
|||||||
|
|
||||||
#if CAP_GL
|
#if CAP_GL
|
||||||
if(vid.usingGL) {
|
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);
|
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
|
||||||
if(vsync_off) disable_vsync();
|
if(vsync_off) disable_vsync();
|
||||||
if(vid.antialias & AA_MULTI) {
|
if(vid.antialias & AA_MULTI) {
|
||||||
|
Loading…
Reference in New Issue
Block a user