Added differentiation between Non power of two textures when mip mapped vs
when not mipped mapped to get round the issue of incomplete support under ATI cards.
This commit is contained in:
@@ -480,7 +480,12 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
|
||||
bool isClientStorageSupported() const { return _isClientStorageSupported; }
|
||||
|
||||
bool isNonPowerOfTwoTextureSupported() const { return _isNonPowerOfTwoTextureSupported; }
|
||||
bool isNonPowerOfTwoTextureSupported(GLenum filter) const
|
||||
{
|
||||
return (filter==GL_LINEAR || filter==GL_NEAREST) ?
|
||||
_isNonPowerOfTwoTextureNonMipMappedSupported :
|
||||
_isNonPowerOfTwoTextureMipMappedSupported;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
@@ -497,7 +502,8 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
bool _isShadowSupported;
|
||||
bool _isShadowAmbientSupported;
|
||||
bool _isClientStorageSupported;
|
||||
bool _isNonPowerOfTwoTextureSupported;
|
||||
bool _isNonPowerOfTwoTextureMipMappedSupported;
|
||||
bool _isNonPowerOfTwoTextureNonMipMappedSupported;
|
||||
|
||||
GLint _maxTextureSize;
|
||||
GLint _numTextureUnits;
|
||||
|
||||
Reference in New Issue
Block a user