We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3b877 commit 1be7135Copy full SHA for 1be7135
src/main/kotlin/com/lambda/graphics/pipeline/VertexBuilder.kt
@@ -29,8 +29,8 @@ import org.joml.Vector4d
29
class VertexBuilder(
30
private val direct: VertexPipeline? = null
31
) {
32
- val vertices by lazy { mutableListOf<Attribute>() }
33
- val indices by lazy { mutableListOf<Int>() }
+ val vertices by lazy(LazyThreadSafetyMode.PUBLICATION) { mutableListOf<Attribute>() }
+ val indices by lazy(LazyThreadSafetyMode.PUBLICATION) { mutableListOf<Int>() }
34
35
private var verticesCounter = 0
36
0 commit comments