From: age Date: Tue, 16 May 2017 10:12:50 +0000 (+0300) Subject: 0028744: Visualization, OpenGl_FrameBuffer missing GL_RGB8 format X-Git-Tag: V7_2_0_beta~138 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=58772a28af262f16bc04ae000f239b4e486839cd;p=occt-copy.git 0028744: Visualization, OpenGl_FrameBuffer missing GL_RGB8 format Missing GL_RGB8 and GL_RGB formats added to getColorDataFormat function. --- diff --git a/src/OpenGl/OpenGl_FrameBuffer.cxx b/src/OpenGl/OpenGl_FrameBuffer.cxx index c18551c9aa..ef3cdf6acd 100644 --- a/src/OpenGl/OpenGl_FrameBuffer.cxx +++ b/src/OpenGl/OpenGl_FrameBuffer.cxx @@ -96,15 +96,17 @@ namespace return true; } case GL_RGBA8: + case GL_RGBA: { thePixelFormat = GL_RGBA; - theDataType = GL_UNSIGNED_INT; + theDataType = GL_UNSIGNED_BYTE; return true; } - case GL_RGBA: + case GL_RGB8: + case GL_RGB: { - thePixelFormat = GL_RGBA; - theDataType = GL_UNSIGNED_BYTE; + thePixelFormat = GL_RGB; + theDataType = GL_UNSIGNED_BYTE; return true; } }