elect
08/06/2018, 1:06 PMNULL of the first method on the second line, but doesn't do the same for the second method
fun texImage1D(level: Int, internalFormat: InternalFormat, width: Int, format: ExternalFormat, type: TypeFormat, pixels: Buffer? = null) {
GL11C.nglTexImage1D(GL11C.GL_TEXTURE_1D, level, internalFormat.i, width, 0, format.i, type.i, pixels?.adr
?: NULL)
}
fun texImage1D(internalFormat: InternalFormat, width: Int, format: ExternalFormat, type: TypeFormat, pixels: ByteBuffer? = null) {
GL11C.nglTexImage1D(GL11C.GL_TEXTURE_1D, 0, internalFormat.i, width, 0, format.i, type.i, pixels?.adr ?: NULL)
}