From 1d136eab9fed05c35be745f8a9384c4d2ac6b39a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 11 Jul 2002 18:32:41 +0000 Subject: [PATCH] Added #define for GL_TEXTURE0_ARB --- include/osg/State | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/osg/State b/include/osg/State index 06a4b2de1..40bd0283f 100644 --- a/include/osg/State +++ b/include/osg/State @@ -20,6 +20,10 @@ namespace osg { +#ifndef GL_TEXTURE0 +#define GL_TEXTURE0 0x84C0 +#endif + /** macro for use with osg::StateAttrbiute::apply methods for detected and * reporting OpenGL error messages.*/ #define OSG_GL_DEBUG(message) \ @@ -363,7 +367,7 @@ class SG_EXPORT State : public Referenced if (s_glClientActiveTexture) { - s_glClientActiveTexture(GL_TEXTURE0_ARB+unit); + s_glClientActiveTexture(GL_TEXTURE0+unit); _currentClientActiveTextureUnit = unit; } else @@ -386,7 +390,7 @@ class SG_EXPORT State : public Referenced if (s_glActiveTexture) { - s_glActiveTexture(GL_TEXTURE0_ARB+unit); + s_glActiveTexture(GL_TEXTURE0+unit); _currentActiveTextureUnit = unit; } else