mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -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()
|
//depthTexture.init()
|
||||||
//attach(depthTexture)
|
//attach(depthTexture)
|
||||||
|
|
||||||
glDrawBuffers(intArrayOf(GL_COLOR_ATTACHMENT0, GL_DEPTH_ATTACHMENT))
|
|
||||||
|
|
||||||
check(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE) { "Framebuffer is incomplete!" }
|
check(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE) { "Framebuffer is incomplete!" }
|
||||||
state = FramebufferState.COMPLETE
|
state = FramebufferState.COMPLETE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user