range check for fixtures with UI; fixture UI is centred now

This commit is contained in:
minjaesong
2021-12-05 14:42:36 +09:00
parent 6c62d1e2ae
commit e56ea0dc5c
4 changed files with 22 additions and 11 deletions

View File

@@ -114,6 +114,8 @@ internal class UIHomeComputer : UICanvas(
otherBatch.end()
fbo.inAction(camera, batch) {
Gdx.gl.glClearColor(0f,0f,0f,1f) // to hide the crap might be there
(vm.peripheralTable[1].peripheral as? GraphicsAdapter)?.let { gpu ->
val clearCol = gpu.getBackgroundColour()
Gdx.gl.glClearColor(clearCol.r, clearCol.g, clearCol.b, clearCol.a)