Skip to content

Commit

Permalink
Display of OpenGL RGBA parameters wrong
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Martin Bene authored and kmdewaal committed Feb 3, 2024
1 parent 38d4e8b commit 8d56a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/opengl/mythrenderopengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ void MythRenderOpenGL::DebugFeatures(void)
.arg(fmt.majorVersion()).arg(fmt.minorVersion());
QString qtglsurface = QString("RGBA: %1:%2:%3:%4 Depth: %5 Stencil: %6")
.arg(fmt.redBufferSize()).arg(fmt.greenBufferSize())
.arg(fmt.greenBufferSize()).arg(fmt.alphaBufferSize())
.arg(fmt.blueBufferSize()).arg(fmt.alphaBufferSize())
.arg(fmt.depthBufferSize()).arg(fmt.stencilBufferSize());
QStringList shaders {"None"};
if (m_features & Shaders)
Expand Down

0 comments on commit 8d56a65

Please sign in to comment.