blob: c4805a0e84240513ebd63c08e88c906b7bad992c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- ogl.c.orig Mon Aug 7 01:20:07 2000
+++ ogl.c Sun Oct 15 16:50:45 2000
@@ -4211,7 +4211,13 @@
#if defined(GL_VERSION_1_1)
rb_define_const(mOGL, "CLIENT_PIXEL_STORE_BIT", INT2NUM(GL_CLIENT_PIXEL_STORE_BIT));
rb_define_const(mOGL, "CLIENT_VERTEX_ARRAY_BIT", INT2NUM(GL_CLIENT_VERTEX_ARRAY_BIT));
+#if defined(GL_CLIENT_ALL_ATTRIB_BITS)
+ /* For Mesa 3.2 and XFree86 4.0 */
rb_define_const(mOGL, "CLIENT_ALL_ATTRIB_BITS", INT2NUM(GL_CLIENT_ALL_ATTRIB_BITS));
+#elif defined(GL_ALL_CLIENT_ATTRIB_BITS)
+ /* For Mesa 3.2.1 */
+ rb_define_const(mOGL, "CLIENT_ALL_ATTRIB_BITS", INT2NUM(GL_ALL_CLIENT_ATTRIB_BITS));
+#endif
#endif /* GL_VERSION_1_1 */
rb_global_variable(&g_current_sel_buffer);
|