On Wed, 28 Jul 2004 21:44:25 -0600
Brian Paul <[EMAIL PROTECTED]> wrote:

> Felix K�hling wrote:
[snip]
> > The second problem is in the server-side GLX code. The definition of
> > GL_FOG_COORD_SOURCE is missing in glxext.h which is needed in
> > singlesize.c. I don't know if this should be fixed in glxext.h or in
> > singlesize.c.
> 
> Not glxext.h, that's for sure.

Oops, this one's actually in glext.h.

> 
> I can't find any reference to GL_FOG_COORD_SOURCE in singlesize.c. 
> But anyway, the correct name for the token is now 
> GL_FOG_COORDINATE_SOURCE (see appendix H of the OpenGL 1.5 spec).
> 
> I'd put something like this in singlesize.c (or wherever it's needed):
> 
> #ifndef GL_FOG_COORD_SRC
> #define GL_FOG_COORD_SRC  0x8450
> #endif
> 

I found this in the old glext.h (version 23):

#define GL_FOG_COORD_SOURCE               GL_FOG_COORDINATE_SOURCE

and in the new one (version 24):

#define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE

They just changed the short cut name. So I guess the right thing would
be to use the long names in singlesize.c. They seem to work with both
versions of glext.h. Does anyone know about older versions? Anyway,
here's a patch that worked for me:

--- ./singlesize.c.~1.8.~       2004-01-16 00:00:56.000000000 +0100
+++ ./singlesize.c      2004-07-29 11:17:35.000000000 +0200
@@ -900,11 +900,11 @@
       case GL_BLEND_SRC_ALPHA:

       /* GL_EXT_fog_coord / GL 1.4 */
-      case GL_CURRENT_FOG_COORD:
-      case GL_FOG_COORD_ARRAY_TYPE:
-      case GL_FOG_COORD_ARRAY_STRIDE:
-      case GL_FOG_COORD_ARRAY:
-      case GL_FOG_COORD_SOURCE:
+      case GL_CURRENT_FOG_COORDINATE:
+      case GL_FOG_COORDINATE_ARRAY_TYPE:
+      case GL_FOG_COORDINATE_ARRAY_STRIDE:
+      case GL_FOG_COORDINATE_ARRAY:
+      case GL_FOG_COORDINATE_SOURCE:

       /* GL_EXT_secondary_color / GL 1.4 */
       case GL_COLOR_SUM:


> 
[snip]

| Felix K�hling <[EMAIL PROTECTED]>                     http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3  B152 151C 5CC1 D888 E595 |


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to