- handle WGL_SWAP_MAIN_PLANE flag in rosglSwapLayerBuffers
authorKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 24 Sep 2009 16:35:20 +0000 (16:35 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 24 Sep 2009 16:35:20 +0000 (16:35 +0000)
svn path=/trunk/; revision=43131

reactos/dll/win32/opengl32/wgl.c

index 9070195..3f714b9 100644 (file)
@@ -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;
 }