From 45265c474cb80750a434908b4c26630f871901a9 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 20 Sep 2023 21:36:22 +1000 Subject: [PATCH] OpenGLDevice: Fix framebuffer clear getting delayed --- src/util/opengl_device.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/opengl_device.cpp b/src/util/opengl_device.cpp index dce4366e8..66d090925 100644 --- a/src/util/opengl_device.cpp +++ b/src/util/opengl_device.cpp @@ -958,6 +958,9 @@ void OpenGLDevice::SetFramebuffer(GPUFramebuffer* fb) UpdateViewport(); UpdateScissor(); } + + if (FB) + CommitClear(FB); } void OpenGLDevice::SetTextureSampler(u32 slot, GPUTexture* texture, GPUSampler* sampler)