Fix wgl_ext.c compilation error
Francois Gouget
fgouget at codeweavers.com
Sat May 7 08:35:14 CDT 2005
wgl_ext.c has stopped compiling in my Debian 3.0 build environment
because I am missing GLX_SAMPLE_BUFFERS_ARB and GLX_SAMPLES_ARB.
For reference this build environment has xlibmesa-dev 4.1.0-16woody4. So
this patch defines these macros if they were not defined by the OpenGL
headers. This way the resulting dll will work fully when run with a more
recent library. I don't know if it's the best fix but I'm open to
suggestions.
Changelog:
* dlls/opengl32/wgl_ext.c
Francois Gouget <fgouget at codeweavers.com>
Define GLX_SAMPLE_BUFFERS_ARB and GLX_SAMPLES_ARB if they were not
defined by the OpenGL headers.
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/opengl32/opengl_ext.h
===================================================================
RCS file: /var/cvs/wine/dlls/opengl32/opengl_ext.h,v
retrieving revision 1.6
diff -u -p -r1.6 opengl_ext.h
--- dlls/opengl32/opengl_ext.h 28 Apr 2005 18:31:16 -0000 1.6
+++ dlls/opengl32/opengl_ext.h 7 May 2005 12:38:02 -0000
@@ -40,6 +40,14 @@
#define WINAPI __stdcall
#define APIENTRY WINAPI
+/* For compatibility with old Mesa headers */
+#ifndef GLX_SAMPLE_BUFFERS_ARB
+# define GLX_SAMPLE_BUFFERS_ARB 100000
+#endif
+#ifndef GLX_SAMPLES_ARB
+# define GLX_SAMPLES_ARB 100001
+#endif
+
/* X11 locking */
extern void (*wine_tsx11_lock_ptr)(void);
More information about the wine-patches
mailing list