mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
samples: fix rendering stopped when changing worker count or type
This commit is contained in:
parent
2bd76e2da5
commit
f3bf9d812f
2844
samples/kotlin-js-store/yarn.lock
Normal file
2844
samples/kotlin-js-store/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -102,6 +102,7 @@ class Controller(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onRenderComplete = { index, buffer ->
|
onRenderComplete = { index, buffer ->
|
||||||
|
if (buffers[index] == null) {
|
||||||
buffers[index] = buffer
|
buffers[index] = buffer
|
||||||
if (--pending == 0) {
|
if (--pending == 0) {
|
||||||
performanceMeasure.endFrame()
|
performanceMeasure.endFrame()
|
||||||
|
@ -112,6 +113,7 @@ class Controller(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun displayBuffers(buffers: Array<out ArrayBuffer?>) {
|
private fun displayBuffers(buffers: Array<out ArrayBuffer?>) {
|
||||||
for (y in 0 until height) {
|
for (y in 0 until height) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user