Added support for generating compressed textures in osgbluemarble.

This commit is contained in:
Robert Osfield
2003-10-17 15:26:30 +00:00
parent 2db71d01cc
commit c199e74bfc
2 changed files with 50 additions and 2 deletions

View File

@@ -401,8 +401,12 @@ void Image::readImageFromCurrentTexture(unsigned int contextID)
allocateImage(width,height,1,internalformat,internalformat);
std::cout << "width="<<width<<" height="<<height<<" internalFormat="<<internalformat<<" _internalFormat="<<_internalTextureFormat<<std::endl;
extensions->glGetCompressedTexImage(GL_TEXTURE_2D, 0, _data);
_internalTextureFormat = internalformat;
return;
}