From 62249553c0ec9f36d6a9660936d05d8ff2bc6940 Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Sun, 31 Mar 2024 19:51:59 +0300 Subject: [PATCH] Fix missing initializer --- src/pt/deferred_renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pt/deferred_renderer.cpp b/src/pt/deferred_renderer.cpp index 78f3adf..f267476 100644 --- a/src/pt/deferred_renderer.cpp +++ b/src/pt/deferred_renderer.cpp @@ -1305,7 +1305,8 @@ void DeferredRenderer::LightingPass::render( const Uniforms uniforms{ glm::inverse(viewProjectionMat), glm::vec4(cameraPosition, 1.f), - glm::vec2(fbsize.x, fbsize.y)}; + glm::vec2(fbsize.x, fbsize.y), + {0.f, 0.f}}; wgpuQueueWriteBuffer( gpuContext.queue, mUniformBuffer.ptr(), 0, &uniforms, sizeof(Uniforms)); }