Be conservative about the presence of GL_TABLE_TOO_LARGE.
authorSven Panne <sven.panne@aedion.de>
Wed, 5 Nov 2008 18:46:20 +0000 (18:46 +0000)
committerSven Panne <sven.panne@aedion.de>
Wed, 5 Nov 2008 18:46:20 +0000 (18:46 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@755 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_misc.c

index 06854c9..4aa809a 100644 (file)
@@ -84,6 +84,14 @@ int FGAPIENTRY glutExtensionSupported( const char* extension )
 #endif
 #endif
 
+#ifndef GL_TABLE_TOO_LARGE
+#ifdef GL_TABLE_TOO_LARGE_EXT
+#define GL_TABLE_TOO_LARGE GL_TABLE_TOO_LARGE_EXT
+#else
+#define GL_TABLE_TOO_LARGE 0x8031
+#endif
+#endif
+
 #ifndef GL_TEXTURE_TOO_LARGE
 #ifdef GL_TEXTURE_TOO_LARGE_EXT
 #define GL_TEXTURE_TOO_LARGE GL_TEXTURE_TOO_LARGE_EXT