From afcfe8a7faa9ad39d34396acdfdbab113a0dd47f Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 17 Sep 2022 13:09:36 +0100 Subject: [PATCH] Don't update scissor state >0 unless multiview is supported --- .../cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp index ef0aeefe..16cff9bd 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/active_state.cpp @@ -239,6 +239,9 @@ namespace skyline::gpu::interconnect::maxwell3d { ScissorState::ScissorState(dirty::Handle dirtyHandle, DirtyManager &manager, const EngineRegisters &engine, u32 index) : engine{manager, dirtyHandle, engine}, index{index} {} void ScissorState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) { + if (index != 0 && !ctx.gpu.traits.supportsMultipleViewports) + return; + builder.SetScissor(index, [&]() { if (engine->scissor.enable) { const auto &vertical{engine->scissor.vertical};