[Fix] (MG_Impl/Init): bind default fbo to draw/read slot at init

This commit is contained in:
2026-03-07 09:31:42 +08:00
parent 00439c5c4a
commit ee9a121c6f
+2
View File
@@ -37,5 +37,7 @@ namespace MobileGL::MG_Impl {
fbo0->AttachTexture(FramebufferAttachmentType::Stencil, stencilTex);
GLImpl::FramebufferImpl::pDefaultFramebufferInfo =
new GLImpl::FramebufferImpl::DefaultFramebufferInfo(fbo0, colorTex, depthTex, stencilTex);
MG_State::pGLContext->GetFramebufferBindingSlot(FramebufferTarget::Draw).Bind(fbo0);
MG_State::pGLContext->GetFramebufferBindingSlot(FramebufferTarget::Read).Bind(fbo0);
}
} // namespace MobileGL::MG_Impl