From 28f4e36884f3feec0887ac8fdf7d64d5152741fa Mon Sep 17 00:00:00 2001 From: Kamil Hornicek Date: Thu, 24 Sep 2009 16:35:20 +0000 Subject: [PATCH] - handle WGL_SWAP_MAIN_PLANE flag in rosglSwapLayerBuffers svn path=/trunk/; revision=43131 --- reactos/dll/win32/opengl32/wgl.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/opengl32/wgl.c b/reactos/dll/win32/opengl32/wgl.c index 9070195bd36..3f714b9f41a 100644 --- a/reactos/dll/win32/opengl32/wgl.c +++ b/reactos/dll/win32/opengl32/wgl.c @@ -1195,9 +1195,15 @@ BOOL APIENTRY rosglSwapLayerBuffers( HDC hdc, UINT fuPlanes ) { - UNIMPLEMENTED; - SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); - return FALSE; + BOOL ret = FALSE; + + if(fuPlanes & WGL_SWAP_MAIN_PLANE) + ret = rosglSwapBuffers(hdc); + + if(fuPlanes &~WGL_SWAP_MAIN_PLANE) + DBGTRACE("wglSwapLayerBuffers is not fully implemented\n"); + + return ret; }