mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
fix opengl error
This commit is contained in:
parent
ace1ec499c
commit
c0a2064080
@ -53,8 +53,6 @@ class OpenGLFramebuffer(var size: Vec2i) : Framebuffer {
|
||||
//depthTexture.init()
|
||||
//attach(depthTexture)
|
||||
|
||||
glDrawBuffers(intArrayOf(GL_COLOR_ATTACHMENT0, GL_DEPTH_ATTACHMENT))
|
||||
|
||||
check(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE) { "Framebuffer is incomplete!" }
|
||||
state = FramebufferState.COMPLETE
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user