diff options
Diffstat (limited to 'graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c')
-rw-r--r-- | graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c b/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c new file mode 100644 index 000000000000..1dfc2c4f672a --- /dev/null +++ b/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c @@ -0,0 +1,11 @@ +--- progs/xdemos/glxpixmap.c.orig Fri Apr 6 22:29:09 2007 ++++ progs/xdemos/glxpixmap.c Fri Apr 6 22:38:33 2007 +@@ -105,7 +105,7 @@ + * to render correctly. This is because Mesa allows RGB rendering + * into any kind of visual, not just TrueColor or DirectColor. + */ +-#ifdef GLX_MESA_pixmap_colormap ++#if defined(GLX_MESA_pixmap_colormap) && !defined(WITH_NVIDIA_GL) + if (strstr(glXQueryExtensionsString(dpy, 0), "GLX_MESA_pixmap_colormap")) { + /* stand-alone Mesa, specify the colormap */ + glxpm = glXCreateGLXPixmapMESA( dpy, visinfo, pm, attr.colormap ); |