Skip to content

Commit 4f0d713

Browse files
committed
Changed matrices list size
1 parent a1577f4 commit 4f0d713

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/kotlin/com/lambda/graphics/gl

1 file changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/graphics/gl/Matrices.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import org.joml.Matrix4f
44
import org.joml.Quaternionf
55

66
object Matrices {
7-
private val stack = ArrayDeque(listOf(Matrix4f()))
7+
private val stack = ArrayDeque<Matrix4f>(1)
88

99
fun translate(x: Double, y: Double, z: Double) {
1010
translate(x.toFloat(), y.toFloat(), z.toFloat())
@@ -51,4 +51,4 @@ object Matrices {
5151
stack.clear()
5252
stack.add(entry)
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)