mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Chore] (MG_Backend/DirectVulkan): asserts fbo existence
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user