mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 12:48:32 +09:00
[Fix] (MG_Backend/DirectVulkan): ignore clear buffer without target [skip ci]
This commit is contained in:
@@ -3534,7 +3534,9 @@ void main() {
|
||||
void VulkanRenderer::QueueClearBufferPayload(GLenum buffer, GLint drawbuffer,
|
||||
const ClearAttachmentPayload& clearPayload) {
|
||||
auto* fbo = MG_State::pGLContext->GetFramebufferBindingSlot(FramebufferTarget::Draw).GetBoundObject().get();
|
||||
MOBILEGL_ASSERT(fbo, "VulkanRenderer::QueueClearBufferPayload: draw framebuffer not found");
|
||||
if (!fbo) {
|
||||
return;
|
||||
}
|
||||
QueueClearBufferPayloadForFramebuffer(*fbo, buffer, drawbuffer, clearPayload);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user