From Farshid Lashkari, added Texture::Extension support for non power of two extension.

This commit is contained in:
Robert Osfield
2005-05-05 09:18:03 +00:00
parent f8c855a576
commit c4e2e85aa1
2 changed files with 10 additions and 1 deletions

View File

@@ -470,7 +470,8 @@ class OSG_EXPORT Texture : public osg::StateAttribute
void glGetCompressedTexImage(GLenum target, GLint level, GLvoid *data) const;
bool isClientStorageSupported() const { return _isClientStorageSupported; }
bool isNonPowerOfTwoTextureSupported() const { return _isNonPowerOfTwoTextureSupported; }
protected:
@@ -487,6 +488,7 @@ class OSG_EXPORT Texture : public osg::StateAttribute
bool _isShadowSupported;
bool _isShadowAmbientSupported;
bool _isClientStorageSupported;
bool _isNonPowerOfTwoTextureSupported;
GLint _maxTextureSize;
GLint _numTextureUnits;