Clear things like a normal person

This commit is contained in:
Fingercomp 2024-08-26 16:03:59 +07:00
parent 2efec95103
commit e7a2a1c6ee
No known key found for this signature in database
GPG Key ID: BBC71CEE45D86E37

View File

@ -99,8 +99,7 @@ class ScreenViewport(private var _width: Int, private var _height: Int) extends
GL11.glViewport(0, 0, _width, _height)
GL11.glDisable(GL11.GL_SCISSOR_TEST)
val x = System.currentTimeMillis() % 1000 / 1000f
GL11.glClearColor(x, x, x, 1f)
GL11.glClearColor(0f, 0f, 0f, 1f)
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT)
Spritesheet.texture.bind()