From 095be1d2dec0149d1878a6416a49ee3cc1fc5ff7 Mon Sep 17 00:00:00 2001 From: spanne Date: Wed, 5 Nov 2008 18:46:20 +0000 Subject: [PATCH] Be conservative about the presence of GL_TABLE_TOO_LARGE. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@755 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/freeglut/freeglut/src/freeglut_misc.c b/freeglut/freeglut/src/freeglut_misc.c index 06854c9..4aa809a 100644 --- a/freeglut/freeglut/src/freeglut_misc.c +++ b/freeglut/freeglut/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