Skip to content

Commit 8d56a65

Browse files
Martin Benekmdewaal
Martin Bene
authored andcommitted
Display of OpenGL RGBA parameters wrong
In the OpenGL debug output the number of bits in each pixel for R, G and B is given. Instead of the bits for B (blue) the number of bits for G (green) is repeated. This is now fixed by replacing the 2nd greenBufferSize with blueBufferSize. Thanks to Martin Bene.
1 parent 38d4e8b commit 8d56a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythui/opengl/mythrenderopengl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ void MythRenderOpenGL::DebugFeatures(void)
404404
.arg(fmt.majorVersion()).arg(fmt.minorVersion());
405405
QString qtglsurface = QString("RGBA: %1:%2:%3:%4 Depth: %5 Stencil: %6")
406406
.arg(fmt.redBufferSize()).arg(fmt.greenBufferSize())
407-
.arg(fmt.greenBufferSize()).arg(fmt.alphaBufferSize())
407+
.arg(fmt.blueBufferSize()).arg(fmt.alphaBufferSize())
408408
.arg(fmt.depthBufferSize()).arg(fmt.stencilBufferSize());
409409
QStringList shaders {"None"};
410410
if (m_features & Shaders)

0 commit comments

Comments
 (0)