HACK: Apply the same workaround for glColor4ub (#18)

See #17

Found out that Botania is using 4ub variant, we need to patch it too.
This commit is contained in:
Vadzim Dambrouski authored and GitHub committed 2023-02-17 15:44:33 +01:00
1 parent 8c59710734
commit a9ca07aa56
1 file changed
+5 -1
@@ -647,7 +647,11 @@ public class GL11 {
}
public static void glColor4ub(byte red, byte green, byte blue, byte alpha) {
org.lwjgl.opengl.GL11.glColor4ub(red, green, blue, alpha);
org.lwjgl.opengl.GL11.glColor4i(
(red & 0xff) * UNSIGNED_BYTE_TO_INT_RATIO,
(green & 0xff) * UNSIGNED_BYTE_TO_INT_RATIO,
(blue & 0xff) * UNSIGNED_BYTE_TO_INT_RATIO,
(alpha & 0xff) * UNSIGNED_BYTE_TO_INT_RATIO);
}
public static void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) {