This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: qv4l2: fix opengl support for RGB32/BGR32. Author: Hans Verkuil <[email protected]> Date: Mon Jun 23 16:14:54 2014 +0200 For whatever reason the GL_RGBA4 internal format was used instead of GL_RGB8, so each color component was just 4 bits instead of 8. Signed-off-by: Hans Verkuil <[email protected]> utils/qv4l2/capture-win-gl.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=3295499aa1d0c30d84008f441c4e40f2be73a955 diff --git a/utils/qv4l2/capture-win-gl.cpp b/utils/qv4l2/capture-win-gl.cpp index 5df1c70..27c30fb 100644 --- a/utils/qv4l2/capture-win-gl.cpp +++ b/utils/qv4l2/capture-win-gl.cpp @@ -226,7 +226,7 @@ void CaptureWinGLEngine::changeShader() glActiveTexture(GL_TEXTURE0); glGenTextures(m_screenTextureCount, m_screenTexture); configureTexture(0); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA4, m_frameWidth, m_frameHeight, 0, + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, m_frameWidth, m_frameHeight, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, NULL); checkError("RGB32 shader"); break; @@ -236,7 +236,7 @@ void CaptureWinGLEngine::changeShader() glActiveTexture(GL_TEXTURE0); glGenTextures(m_screenTextureCount, m_screenTexture); configureTexture(0); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA4, m_frameWidth, m_frameHeight, 0, + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, m_frameWidth, m_frameHeight, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, NULL); checkError("BGR32 shader"); break; _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
