Internal format fix (#2179)

This commit is contained in:
Death Fuel authored and GitHub committed 2026-10-01 20:36:21 -07:00
1 parent a8e95f70c1
commit d16c1e7cf6
1 file changed
+1 -1
@@ -221,7 +221,7 @@ public final class FontProviderCustom implements FontProvider {
pixelBuffer.limit(image.getHeight() * image.getWidth());
}
GLStateManager.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL12.GL_BGRA, image.getWidth(), image.getHeight(), 0, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, pixelBuffer);
GLStateManager.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, image.getWidth(), image.getHeight(), 0, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, pixelBuffer);
memFree(pixelBuffer);
this.texture = id;