Added support for generating compressed textures in osgbluemarble.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user