[Xquartz-changes] [565] AppleSGLX/trunk/tests/triangle_glx

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 19 16:46:45 PDT 2011


Revision: 565
          http://trac.macosforge.org/projects/xquartz/changeset/565
Author:   jeremyhu at freedesktop.org
Date:     2011-07-19 16:46:44 -0700 (Tue, 19 Jul 2011)
Log Message:
-----------
It is not valid to call glXMakeCurrent with a context but no drawable

Modified Paths:
--------------
    AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
    AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface.c

Modified: AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
===================================================================
--- AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c	2011-07-13 21:00:46 UTC (rev 564)
+++ AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c	2011-07-19 23:46:44 UTC (rev 565)
@@ -48,7 +48,7 @@
 
 	draw(dpy, mainwin);
 	/* This should destroy the surface. */
-	if(!glXMakeCurrent(dpy, None, ctx)) {
+	if(!glXMakeCurrent(dpy, None, NULL)) {
 	    fprintf(stderr, "%s: make current None failed!\n", __func__);
 	    exit(EXIT_FAILURE);
 	}	

Modified: AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface.c
===================================================================
--- AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface.c	2011-07-13 21:00:46 UTC (rev 564)
+++ AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface.c	2011-07-19 23:46:44 UTC (rev 565)
@@ -44,7 +44,7 @@
 
 	draw(dpy, mainwin);
 	/* This should destroy the surface. */
-	glXMakeCurrent(dpy, None, ctx);
+	glXMakeCurrent(dpy, None, NULL);
 	/* This should recreate the surface. */
 	glXMakeCurrent(dpy, mainwin, ctx);
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20110719/11a8e533/attachment.html>


More information about the Xquartz-changes mailing list