]> OCCT Git - occt.git/commit
0032093: Visualization, TKOpenGl - loading texture in BGR format fails in OpenGL ES
authorkgv <kgv@opencascade.com>
Fri, 29 Jan 2021 00:34:16 +0000 (03:34 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 29 Jan 2021 16:51:17 +0000 (19:51 +0300)
commit776302d46bf1036875e115d78b54be9ebb8600d9
tree63207cf829022190edc8f7161d1ec327ead02772
parent961c002c469812442a160644ebb368251bff3e84
0032093: Visualization, TKOpenGl - loading texture in BGR format fails in OpenGL ES

Graphic3d_TextureRoot::convertToCompatible() - fixed handling of
Image_Format_BGR and Image_Format_BGRA formats.

OpenGl_Texture - added error message for unsupported pixel format;
error messages have been extended by resource id.
OpenGl_Texture::InitCubeMap() now does not release cubemap
on mipmaps generation failure.

Image_PixMap::ImageFormatToString() - added method returning name of pixel format.
src/Graphic3d/Graphic3d_TextureRoot.cxx
src/Image/Image_PixMap.cxx
src/Image/Image_PixMap.hxx
src/OpenGl/OpenGl_Texture.cxx