opengl: don't unbind buffers

This commit is contained in:
Bixilon 2022-03-06 00:41:38 +01:00
parent 30fb1746b5
commit fd75562b09
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -36,6 +36,8 @@ abstract class OpenGLRenderableBuffer(override val type: RenderableBufferTypes)
}
override fun unbind() {
return
// This is unclean, yes. But it is not required to do at all (we always bind another buffer), so this saves a ton of gl calls
glBindBuffer(type.gl, 0)
}