Skip to content

Commit

Permalink
Fix bytes per element for IntBuffer. (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Displee committed Mar 23, 2021
1 parent b9979ea commit 7281e6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class GLAttributes {
val (type, bytesPerElement) = when (attribute) {
is IntBufferAttribute -> {
GL15.glBufferData(bufferType, attribute.buffer, usage)
GL11.GL_UNSIGNED_INT to 3
GL11.GL_UNSIGNED_INT to 4
}
is FloatBufferAttribute -> {
GL15.glBufferData(bufferType, attribute.buffer, usage)
Expand Down

0 comments on commit 7281e6a

Please sign in to comment.