ports/graphics/mesa-demos/files/patch-src-xdemos-glxpixmap.c
Niclas Zeising 312590479c Update to 8.0.1
This adds a bunch of new demos.

Obtained from:	xorg development repo
2013-03-11 14:56:56 +00:00

11 lines
585 B
C

--- src/xdemos/glxpixmap.c.orig Fri Apr 6 22:29:09 2007
+++ src/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 );