We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c68158 commit bbee3b9Copy full SHA for bbee3b9
common/src/main/kotlin/com/lambda/graphics/texture/Texture.kt
@@ -222,6 +222,8 @@ open class Texture{
222
223
private fun getNativeFormat(gl: Int) =
224
when (gl) {
225
+ GL_RED, GL_GREEN, GL_BLUE -> NativeImage.Format.LUMINANCE
226
+ GL_RG -> NativeImage.Format.LUMINANCE_ALPHA
227
GL_RGB -> NativeImage.Format.RGB
228
else -> NativeImage.Format.RGBA
229
}
0 commit comments