[313] AppleSGLX/trunk/tests/triangle_glx/triangle_glx_surface-2.c
Revision: 313 http://trac.macosforge.org/projects/xquartz/changeset/313 Author: gstaplin@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); } }
participants (1)
-
source_changes@macosforge.org