mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
load models after init of renderers
+ crash fix
This commit is contained in:
parent
b27c9a509b
commit
651a12337f
@ -77,7 +77,6 @@ object RenderLoader {
|
|||||||
textures.initializeSkins(connection)
|
textures.initializeSkins(connection)
|
||||||
textures.loadDefaultTextures()
|
textures.loadDefaultTextures()
|
||||||
font = FontManager.create(this, initLatch)
|
font = FontManager.create(this, initLatch)
|
||||||
models.load(latch)
|
|
||||||
|
|
||||||
|
|
||||||
framebuffer.init()
|
framebuffer.init()
|
||||||
@ -91,6 +90,7 @@ object RenderLoader {
|
|||||||
// Wait for init stage to complete
|
// Wait for init stage to complete
|
||||||
initLatch.dec()
|
initLatch.dec()
|
||||||
initLatch.await()
|
initLatch.await()
|
||||||
|
models.load(latch)
|
||||||
|
|
||||||
renderer[GUIRenderer]?.atlas?.load() // TODO: remove this
|
renderer[GUIRenderer]?.atlas?.load() // TODO: remove this
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class ArmRenderer(override val context: RenderContext) : Renderer, Drawable {
|
|||||||
override val framebuffer get() = context.framebuffer.gui
|
override val framebuffer get() = context.framebuffer.gui
|
||||||
val shader = context.system.createShader(minosoft("entities/player/arm")) { ArmShader(it) }
|
val shader = context.system.createShader(minosoft("entities/player/arm")) { ArmShader(it) }
|
||||||
|
|
||||||
init {
|
override fun init(latch: AbstractLatch) {
|
||||||
registerModels()
|
registerModels()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user