When calling GlCommandEncoder.writeTextureToBuffer() for a depth texture, then for a color texture right after, the read buffer will be GL_NONE, due to the GlStateManager._glReadBuffer(GL11.GL_NONE); call.
This is causing an opengl error: GL_INVALID_OPERATION error generated. No color buffer.
This issue was introduced in 26.3-snapshot-10, caused by the fix to MC-310719. I initially reported it in the VV discord 1 week ago.
A confirmed fix is to call GlStateManager._glReadBuffer(isDepth ? GL11.GL_NONE : GL30.GL_COLOR_ATTACHMENT0); instead, or just removing that call completely since it’s not mandatory.
Environment
OpenGL
Comments 0
No comments.