fix opengl error

This commit is contained in:
Bixilon 2022-01-05 18:22:42 +01:00
parent ace1ec499c
commit c0a2064080
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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
} }