Revision: 291 http://trac.macosforge.org/projects/xquartz/changeset/291 Author: gstaplin@apple.com Date: 2009-03-07 01:21:53 -0800 (Sat, 07 Mar 2009) Log Message: ----------- Add a test for glXGetCurrentDisplay. Update the TODO (a few more items DONE). Modified Paths: -------------- AppleSGLX/trunk/TODO AppleSGLX/trunk/tests/triangle_glx/triangle_glx.c Modified: AppleSGLX/trunk/TODO =================================================================== --- AppleSGLX/trunk/TODO 2009-03-07 09:10:09 UTC (rev 290) +++ AppleSGLX/trunk/TODO 2009-03-07 09:21:53 UTC (rev 291) @@ -2,7 +2,7 @@ DONE Fix glXCreateWindow and glXDestroyWindow. -Add API major version testing to the apple_cgl layer. This way we can avoid +DONE Add API major version testing to the apple_cgl layer. This way we can avoid future API fiascos. Jordan suggested this a while ago. -- Feb 16, 2009 @@ -16,7 +16,7 @@ DONE glXGetCurrentReadDrawable should also report the read drawable. It appears correct. -Test glXGetCurrentDisplay(). It appears correct. +DONE Test glXGetCurrentDisplay(). It appears correct. -- Improve the glX symbol compatibility with the old libGL. @@ -46,7 +46,7 @@ Test glXCopyContext. -Add the PBUFFER_BIT to the fbconfigs/visualconfigs in the X server. This is actually unclear. We should perhaps set that bit in the libGL instead. +DONE (in 1.6) Add the PBUFFER_BIT to the fbconfigs/visualconfigs in the X server. This is actually unclear. We should perhaps set that bit in the libGL instead. DONE Test the pbuffer by using glReadPixels to verify it's being written to. @@ -62,7 +62,7 @@ -- Feb 7, 2009 -Extend the GL_aliases for compatibility with the old libGL (wherever possible). +DONE Extend the GL_aliases for compatibility with the old libGL (wherever possible). -- Feb 5, 2009 @@ -83,7 +83,7 @@ DONE test glXQueryServerString, glXGetClientString, and glXGetProcAddress. -Use CGLGetVersion to assert ABI major version compatibility with the OpenGL framework. +DONE Use CGLGetVersion to assert ABI major version compatibility with the OpenGL framework. DONE Work out the include/GL/gl.h problems (with the ARB functions). Modified: AppleSGLX/trunk/tests/triangle_glx/triangle_glx.c =================================================================== --- AppleSGLX/trunk/tests/triangle_glx/triangle_glx.c 2009-03-07 09:10:09 UTC (rev 290) +++ AppleSGLX/trunk/tests/triangle_glx/triangle_glx.c 2009-03-07 09:21:53 UTC (rev 291) @@ -98,6 +98,8 @@ XMapWindow(dpy, win); glXMakeCurrent(dpy, win, ctx); + printf("passed dpy %p current dpy %p\n", (void *)dpy, + (void *)glXGetCurrentDisplay()); event_loop(dpy);