Fixed a bug where GetBlueBits was returning the count of green bits.
TRAC #23278
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Geoff Lang
diff --git a/src/libGLESv2/formatutils.cpp b/src/libGLESv2/formatutils.cpp
index 7e4c330..13d6b24 100644
--- a/src/libGLESv2/formatutils.cpp
+++ b/src/libGLESv2/formatutils.cpp
@@ -1155,7 +1155,7 @@
InternalFormatInfo internalFormatInfo;
if (GetInternalFormatInfo(internalFormat, clientVersion, &internalFormatInfo))
{
- return internalFormatInfo.mGreenBits;
+ return internalFormatInfo.mBlueBits;
}
else
{