We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1577f4 commit 4f0d713Copy full SHA for 4f0d713
common/src/main/kotlin/com/lambda/graphics/gl/Matrices.kt
@@ -4,7 +4,7 @@ import org.joml.Matrix4f
4
import org.joml.Quaternionf
5
6
object Matrices {
7
- private val stack = ArrayDeque(listOf(Matrix4f()))
+ private val stack = ArrayDeque<Matrix4f>(1)
8
9
fun translate(x: Double, y: Double, z: Double) {
10
translate(x.toFloat(), y.toFloat(), z.toFloat())
@@ -51,4 +51,4 @@ object Matrices {
51
stack.clear()
52
stack.add(entry)
53
}
54
-}
+}
0 commit comments