Fix issue caused by frustum offset when map is resized (#4015)

This commit is contained in:
Alex Cristici
2025-12-18 18:56:29 +02:00
committed by GitHub
parent 598ff87c2e
commit ee9ddebc33
10 changed files with 43 additions and 22 deletions

View File

@@ -175,7 +175,6 @@ 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;