aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/mc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/mc')
-rw-r--r--src/main/kotlin/util/mc/CustomRenderPassHelper.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/util/mc/CustomRenderPassHelper.kt b/src/main/kotlin/util/mc/CustomRenderPassHelper.kt
index 1bd1148..12f98e4 100644
--- a/src/main/kotlin/util/mc/CustomRenderPassHelper.kt
+++ b/src/main/kotlin/util/mc/CustomRenderPassHelper.kt
@@ -109,7 +109,7 @@ class CustomRenderPassHelper(
}
fun allocateByteBuf(size: Int, init: (Std140Builder) -> Unit): ByteBuffer {
- return Std140Builder.intoBuffer(
+ return Std140Builder.intoBuffer( // TODO: i really dont know about this 16 align? but it seems to be generally correct.
ByteBuffer
.allocateDirect(MathHelper.roundUpToMultiple(size, 16))
.order(ByteOrder.nativeOrder())