From 58772a28af262f16bc04ae000f239b4e486839cd Mon Sep 17 00:00:00 2001 From: age Date: Tue, 16 May 2017 13:12:50 +0300 Subject: [PATCH] 0028744: Visualization, OpenGl_FrameBuffer missing GL_RGB8 format Missing GL_RGB8 and GL_RGB formats added to getColorDataFormat function. --- src/OpenGl/OpenGl_FrameBuffer.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } } -- 2.39.5