xserver/hw/xquartz/GL
George Staplin 429b4b20d5 XQuartz: GL: Add a branch to prevent a NULL DrawablePtr structure access.
In attach() check for pDraw being NULL, and also print an ErrorF message,
because we eventually want to track down why this is occuring.

It's unclear how this occurs, but as I noted in the 1.4 branch, I believe that
the DrawablePtr/struct _Drawable -> id is the member being accessed that causes
KERN_PROTECTION_FAILURE at 0x0000000000000004

This passes my tests using: env LIBGL_ALWAYS_INDIRECT=1 ./sometest.

I fixed a warning: caused by initializing the screen->base.visuals with the
configs.  It is a ** not a *.  It seems that some other part of GLX will
initialize this for us.
(cherry picked from commit 17f6a261fca6d5856069dce28bb4838261afc6bc)
2008-11-22 11:13:46 -08:00
..
Makefile.am XQuartz: GL: remove glcontextmodes.* from the Makefile.am. It has been replaced. 2008-11-21 20:10:57 -08:00
capabilities.c XQuartz: GL: Add capability detection for depth buffers, and multisampling. 2008-11-05 19:23:48 -08:00
capabilities.h XQuartz: GL: Add capability detection for depth buffers, and multisampling. 2008-11-05 19:23:48 -08:00
glcontextmodes.c XQuartz: Actually add glcontextmodes.[hc] 2008-11-14 15:13:59 -08:00
glcontextmodes.h XQuartz: Actually add glcontextmodes.[hc] 2008-11-14 15:13:59 -08:00
indirect.c XQuartz: GL: Add a branch to prevent a NULL DrawablePtr structure access. 2008-11-22 11:13:46 -08:00
visualConfigs.c XQuartz: GL: Handle the alpha differently when the alpha is equal to GLCAPS_COLOR_BUF_INVALID_VALUE. 2008-11-13 11:34:21 -08:00
visualConfigs.h XQuartz: GL: Add the proper license information to the new files, and add more commentary to setVisualConfigs(). 2008-10-08 18:44:28 -07:00