[Chore] (MG_Backend/DirectVulkan): asserts fbo existence

This commit is contained in:
2026-03-07 09:33:05 +08:00
parent ee9a121c6f
commit 876cb7bcd3
@@ -569,9 +569,8 @@ namespace MobileGL::MG_Backend::DirectVulkan {
void VulkanRenderer::Clear(GLbitfield mask) { void VulkanRenderer::Clear(GLbitfield mask) {
m_clearManager->CollectGarbage(); m_clearManager->CollectGarbage();
auto* fbo = MG_State::pGLContext->GetFramebufferBindingSlot(FramebufferTarget::Draw).GetBoundObject().get(); auto* fbo = MG_State::pGLContext->GetFramebufferBindingSlot(FramebufferTarget::Draw).GetBoundObject().get();
if (!fbo) { MOBILEGL_ASSERT(fbo, "VulkanRenderer::Clear: draw framebuffer not found (fbo == nullptr)");
MGLOG_D("VulkanRenderer::Clear: draw framebuffer not found");
}
ClearFramebufferPayload payload { ClearFramebufferPayload payload {
.color = MG_State::pGLContext->GetClearColor(), .color = MG_State::pGLContext->GetClearColor(),
.depth = MG_State::pGLContext->GetClearDepth(), .depth = MG_State::pGLContext->GetClearDepth(),