Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Default value for SGI swap control GL attribute should be -1.
Explicitly try to set it if you want a different value. Different glX
 implementations appear to have different defaults for this, and you can't
 query them for the current value.
  • Loading branch information
icculus committed Oct 10, 2009
1 parent ab59e90 commit ad171eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11video.c
Expand Up @@ -122,7 +122,7 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex)
SDL_memset(device->gl_data, 0, (sizeof *device->gl_data));

#if SDL_VIDEO_OPENGL_GLX
device->gl_data->sgi_swap_interval = 1;
device->gl_data->sgi_swap_interval = -1;
#endif

/* Set the driver flags */
Expand Down

0 comments on commit ad171eb

Please sign in to comment.