From Eric Sokolowsky, made a couple of methods static.

This commit is contained in:
Robert Osfield
2006-06-30 13:47:12 +00:00
parent 4ce0d8af64
commit 6a2387373c
2 changed files with 11 additions and 6 deletions

View File

@@ -599,7 +599,7 @@ bool Texture::isCompressedInternalFormat() const
return isCompressedInternalFormat(getInternalFormat());
}
bool Texture::isCompressedInternalFormat(GLint internalFormat) const
bool Texture::isCompressedInternalFormat(GLint internalFormat)
{
switch(internalFormat)
{
@@ -619,7 +619,7 @@ bool Texture::isCompressedInternalFormat(GLint internalFormat) const
}
}
void Texture::getCompressedSize(GLenum internalFormat, GLint width, GLint height, GLint depth, GLint& blockSize, GLint& size) const
void Texture::getCompressedSize(GLenum internalFormat, GLint width, GLint height, GLint depth, GLint& blockSize, GLint& size)
{
if (internalFormat == GL_COMPRESSED_RGB_S3TC_DXT1_EXT || internalFormat == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT)
blockSize = 8;