[Plib-devel] [PATCH] Patch for ssg water example
Brought to you by:
sjbaker
From: Jan R. <slo...@gm...> - 2005-08-26 18:45:30
|
Hello! I've just experienced another problem, once again with the water example. This time it's NVIDIA's fault ;-) I recently upgraded my NVIDIA drivers, which included new versions of the OpenGL headers. The new glext.h now conforms to the OpenGL ABI for Linux (http://oss.sgi.com/projects/ogl-sample/ABI/): It separates the extension prototypes from the rest of the header file using the GL_GLEXT_PROTOTYPES define. According to the ABI paper, [quote] "To define prototypes as well as typedefs, the application must #define GL_GLEXT_PROTOTYPES prior to including gl.h or glx.h." [/quote] The water demo uses extensions for multitexturing, so compilation fails (glActiveTexture() seems to be undefined although the implementation conforms to OpenGL > 1.3). The attached patch adds the above #define. I don't know if this effects other platforms as well. Win32 surely is unaffected (always using OpenGL < 1.3 and therefore using the ARB extension). I've also made some more changes to the example: - converted from GLUT to PW (I thought it would be nice to have more "pure" PLIB examples) - fixed some compiler warnings (float/double issues, Win32 only) - use an instance of ssgContext instead of using the deprecated context-related function calls (I noticed that there's no other example which uses this class) Can someone please review this patch and add it to the CVS? Kind regards, Jan R. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |