[Xquartz-changes] [241] AppleSGLX/trunk/apple_xgl_api_read.c

source_changes at macosforge.org source_changes at macosforge.org
Sun Feb 22 16:06:06 PST 2009


Revision: 241
          http://trac.macosforge.org/projects/xquartz/changeset/241
Author:   gstaplin at apple.com
Date:     2009-02-22 16:06:03 -0800 (Sun, 22 Feb 2009)
Log Message:
-----------
Correct the currentReadable usage with the apple_xgl_api_read.c
code.  The glCopyPixels may not be right in the case of a
readable drawable specified to glXMakeContextCurrent.  
I think it needs more testing.

Modified Paths:
--------------
    AppleSGLX/trunk/apple_xgl_api_read.c

Modified: AppleSGLX/trunk/apple_xgl_api_read.c
===================================================================
--- AppleSGLX/trunk/apple_xgl_api_read.c	2009-02-22 23:39:12 UTC (rev 240)
+++ AppleSGLX/trunk/apple_xgl_api_read.c	2009-02-23 00:06:03 UTC (rev 241)
@@ -59,7 +59,8 @@
      * the user has requested a readable drawable with glXMakeContextCurrent().
      * We emulate this behavior by switching the current drawable.
      */
-    if(gc->currentReadable != gc->currentDrawable) {
+    if(None != gc->currentReadable 
+       && gc->currentReadable != gc->currentDrawable) {
 	Display *dpy = glXGetCurrentDisplay();
 
 	saved->swapped = true;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090222/8b7ad24c/attachment-0001.html>


More information about the Xquartz-changes mailing list