From 88d013ebb9b480e8ef2771c972fdff7b7e9f180b Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 3 Nov 2024 22:05:41 +0100 Subject: [PATCH] Correctly set the number of viewports/scissors --- client/scenes/stream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 694532ed..153ecff1 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -500,6 +500,10 @@ void scenes::stream::render(const XrFrameState & frame_state) .InputAssemblyState = {{ .topology = vk::PrimitiveTopology::eTriangleStrip, }}, + // With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports + // and scissors is still used, put a vector with one element + .Viewports = {{}}, + .Scissors = {{}}, .RasterizationState = {{ .polygonMode = vk::PolygonMode::eFill, .lineWidth = 1,