Skip to content

Commit 14ca922

Browse files
committed
Fix image color rendering
1 parent 2d438a5 commit 14ca922

File tree

1 file changed

+1
-2
lines changed
  • src/main/kotlin/com/lambda/graphics/texture

1 file changed

+1
-2
lines changed

src/main/kotlin/com/lambda/graphics/texture/Texture.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import com.lambda.graphics.texture.TextureUtils.setupTexture
2323
import com.lambda.util.LambdaResource
2424
import com.lambda.util.readImage
2525
import net.minecraft.client.texture.NativeImage
26-
import org.lwjgl.opengl.GL45C.GL_BGRA
2726
import org.lwjgl.opengl.GL45C.GL_BLUE
2827
import org.lwjgl.opengl.GL45C.GL_GREEN
2928
import org.lwjgl.opengl.GL45C.GL_LINEAR
@@ -243,7 +242,7 @@ open class Texture {
243242
TYPE_BYTE_GRAY to GL_RG,
244243
TYPE_INT_RGB to GL_RGB,
245244
TYPE_INT_ARGB to GL_RGBA,
246-
TYPE_4BYTE_ABGR to GL_BGRA,
245+
TYPE_4BYTE_ABGR to GL_RGBA,
247246
)
248247
}
249248
}

0 commit comments

Comments
 (0)