GL secondary color extension

Marius Grigoriu <[email protected]>
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
This patch adds a check for the secondary color extension before making 
a call. With the current ATI drivers where no extensions seem to work 
with winex it would normally crash without this check.

_______________________________________________
winex-devel mailing list
[email protected]
http://lists.transgaming.org/cgi-bin/mailman/listinfo/winex-devel
x11drv_secondary_color_ext.patch (text/plain, 523 B)
Index: dlls/x11drv/glx.c
===================================================================
RCS file: /cvsroot/winex/dlls/x11drv/glx.c,v
retrieving revision 1.146
diff -u -r1.146 glx.c
--- dlls/x11drv/glx.c	27 Dec 2003 08:46:00 -0000	1.146
+++ dlls/x11drv/glx.c	28 Jan 2004 00:41:19 -0000
@@ -312,7 +312,8 @@
       glDisableClientState(GL_FOG_COORDINATE_ARRAY_EXT);
   }
 
-  ctx->glSecondaryColor3ubEXT(0,0,0);
+  if (HAVE_GL_EXT(ctx, EXT_secondary_color))
+  	ctx->glSecondaryColor3ubEXT(0,0,0);
 
   return invert;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.