mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-25 10:42:15 +09:00
[Fix] (MG_Impl/Init): bind default fbo to draw/read slot at init
This commit is contained in:
1 parent
00439c5c4a
commit
ee9a121c6f
1 file changed
+2
@@ -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
|
||||
Reference in new issue
Block a user