Work around mesa's default-on swap control
This commit is contained in:
		| @ -4630,6 +4630,9 @@ vsync_opengl_swc_deinit(session_t *ps) { | |||||||
|  */ |  */ | ||||||
| bool | bool | ||||||
| vsync_init(session_t *ps) { | vsync_init(session_t *ps) { | ||||||
|  |   // Mesa turns on swap control by default, undo that | ||||||
|  |   vsync_opengl_swc_swap_interval(ps, 0); | ||||||
|  |  | ||||||
|   if (ps->o.vsync && VSYNC_FUNCS_INIT[ps->o.vsync] |   if (ps->o.vsync && VSYNC_FUNCS_INIT[ps->o.vsync] | ||||||
|       && !VSYNC_FUNCS_INIT[ps->o.vsync](ps)) { |       && !VSYNC_FUNCS_INIT[ps->o.vsync](ps)) { | ||||||
|     ps->o.vsync = VSYNC_NONE; |     ps->o.vsync = VSYNC_NONE; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Dan Elkouby
					Dan Elkouby