Disable scissor test when clearing on OpenGL (#4029)

This commit is contained in:
Adrian Cojocaru
2026-01-07 14:21:34 +02:00
committed by GitHub
parent d7314cd87f
commit 93cf075338
7 changed files with 19 additions and 31 deletions

View File

@@ -175,6 +175,7 @@ RenderPass::RenderPass(CommandEncoder& commandEncoder_, const char* name, const
auto size = descriptor.renderable.getSize();
wgpuRenderPassEncoderSetViewport(
impl->encoder, 0.0f, 0.0f, static_cast<float>(size.width), static_cast<float>(size.height), 0.0f, 1.0f);
wgpuRenderPassEncoderSetScissorRect(impl->encoder, 0, 0, size.width, size.height);
} else {
mbgl::Log::Error(mbgl::Event::Render, "WebGPU: Failed to begin render pass");
impl->colorView = nullptr;