aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emulator/opengl/host/libs/Translator/GLcommon/etc1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLcommon/etc1.cpp b/emulator/opengl/host/libs/Translator/GLcommon/etc1.cpp
index 5ed2c3c..97d1085 100644
--- a/emulator/opengl/host/libs/Translator/GLcommon/etc1.cpp
+++ b/emulator/opengl/host/libs/Translator/GLcommon/etc1.cpp
@@ -149,13 +149,13 @@ inline int divideBy255(int d) {
static
inline int convert8To4(int b) {
int c = b & 0xff;
- return divideBy255(b * 15);
+ return divideBy255(c * 15);
}
static
inline int convert8To5(int b) {
int c = b & 0xff;
- return divideBy255(b * 31);
+ return divideBy255(c * 31);
}
static