[PATCH] According to the pbuffer extension docs wglReleasePbufferDCARB needs to return true on success and 0 on failure. This fixes gpubench.

Roderick Colenbrander thunderbird2k at gmx.net
Sat Mar 22 07:36:20 CDT 2008


---
 dlls/winex11.drv/opengl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 33b09d3..a61a116 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2528,8 +2528,7 @@ static GLboolean WINAPI X11DRV_wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAtt
 static int WINAPI X11DRV_wglReleasePbufferDCARB(HPBUFFERARB hPbuffer, HDC hdc)
 {
     TRACE("(%p, %p)\n", hPbuffer, hdc);
-    DeleteDC(hdc);
-    return 0;
+    return DeleteDC(hdc);
 }
 
 /**
-- 
1.5.3.8


--========GMX184921206201218835969--



More information about the wine-patches mailing list