(WGL) Try to use wglSwapLayerBuffers first before resorting to SwapBuffers

This commit is contained in:
twinaphex 2017-08-19 14:17:30 +02:00
parent 1205c2f438
commit e065d70426

View File

@ -368,7 +368,8 @@ static void gfx_ctx_wgl_swap_buffers(void *data, void *data2)
{
case GFX_CTX_OPENGL_API:
#ifdef HAVE_OPENGL
SwapBuffers(win32_hdc);
if (wglSwapLayerBuffers(win32_hdc, WGL_SWAP_MAIN_PLANE) == FALSE)
SwapBuffers(win32_hdc);
#endif
break;