Added #define for GL_TEXTURE0_ARB

This commit is contained in:
Robert Osfield
2002-07-11 18:32:41 +00:00
parent 8219a0a63a
commit 1d136eab9f

View File

@@ -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