From 841aead075c529c89853de6f25f97b61d0b3f1ef Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Wed, 5 Nov 2008 18:46:20 +0000 Subject: [PATCH] Be conservative about the presence of GL_TABLE_TOO_LARGE. 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freeglut_misc.c b/src/freeglut_misc.c index 06854c9..4aa809a 100644 --- a/src/freeglut_misc.c +++ b/src/freeglut_misc.c @@ -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 -- 1.7.10.4