Removed check as this is better outside of the function

This commit is contained in:
Robert Osfield 2018-08-17 16:51:55 +01:00
parent 58a51cbc41
commit 29e87780f5

View File

@ -2085,8 +2085,6 @@ bool Texture::areAllTextureObjectsLoaded() const
GLenum Texture::selectSizedInternalFormat(const osg::Image* image) const
{
if (_borderWidth!=0) return 0;
if (image)
{
bool compressed_image = isCompressedInternalFormat((GLenum)image->getPixelFormat());