Chris Robinson : winex11: Properly handle WGL_PBUFFER_LOST_ARB.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 6 08:03:52 CDT 2007


Module: wine
Branch: master
Commit: b4c11e30335f2320b81a2158af06af5ae2a6be21
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b4c11e30335f2320b81a2158af06af5ae2a6be21

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Sat Aug  4 11:12:36 2007 -0700

winex11: Properly handle WGL_PBUFFER_LOST_ARB.

---

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

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 91acd3b..d4ed729 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2279,7 +2279,11 @@ static GLboolean WINAPI X11DRV_wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAtt
             break;
 
         case WGL_PBUFFER_LOST_ARB:
-            FIXME("unsupported WGL_PBUFFER_LOST_ARB (need glXSelectEvent/GLX_DAMAGED work)\n");
+            /* GLX Pbuffers cannot be lost by default. We can support this by
+             * setting GLX_PRESERVED_CONTENTS to False and using glXSelectEvent
+             * to receive pixel buffer clobber events, however that may or may
+             * not give any benefit */
+            *piValue = GL_FALSE;
             break;
 
         case WGL_TEXTURE_FORMAT_ARB:




More information about the wine-cvs mailing list