[Xquartz-changes] [313] AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Mar 16 23:41:08 PDT 2009
Revision: 313
http://trac.macosforge.org/projects/xquartz/changeset/313
Author: gstaplin at apple.com
Date: 2009-03-16 23:41:06 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
Fix the error handling in the triangle_glx_surface-2.c test.
Modified Paths:
--------------
AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
Modified: AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
===================================================================
--- AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c 2009-03-16 21:23:36 UTC (rev 312)
+++ AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c 2009-03-17 06:41:06 UTC (rev 313)
@@ -49,7 +49,7 @@
draw(dpy, mainwin);
/* This should destroy the surface. */
if(!glXMakeCurrent(dpy, None, ctx)) {
- fprintf(stderr, "%s: make current None failed!\n");
+ fprintf(stderr, "%s: make current None failed!\n", __func__);
exit(EXIT_FAILURE);
}
@@ -68,7 +68,7 @@
/* This should recreate the surface. */
if(!glXMakeCurrent(dpy, mainwin, ctx)) {
- fprintf(stderr, "%s: make mainwin current failed!\n");
+ fprintf(stderr, "%s: make mainwin current failed!\n", __func__);
exit(EXIT_FAILURE);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090316/300a397f/attachment.html>
More information about the Xquartz-changes
mailing list