From Marco Jez, addition of new interal texture formats to osg/Texture and Image.cpp

This commit is contained in:
Robert Osfield
2004-09-01 08:49:48 +00:00
parent a85ea0a8cc
commit e5cfe0a27a
2 changed files with 35 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ unsigned int Image::computePixelSizeInBits(GLenum format,GLenum type)
case(GL_BYTE):
case(GL_UNSIGNED_BYTE): return 8*computeNumComponents(format);
case(GL_HALF_FLOAT_NV):
case(GL_SHORT):
case(GL_UNSIGNED_SHORT): return 16*computeNumComponents(format);