mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-21 20:52:17 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user