mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 11:59:15 +01:00
Don't update scissor state >0 unless multiview is supported
This commit is contained in:
parent
55d77b7eb0
commit
afcfe8a7fa
@ -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} {}
|
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) {
|
void ScissorState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) {
|
||||||
|
if (index != 0 && !ctx.gpu.traits.supportsMultipleViewports)
|
||||||
|
return;
|
||||||
|
|
||||||
builder.SetScissor(index, [&]() {
|
builder.SetScissor(index, [&]() {
|
||||||
if (engine->scissor.enable) {
|
if (engine->scissor.enable) {
|
||||||
const auto &vertical{engine->scissor.vertical};
|
const auto &vertical{engine->scissor.vertical};
|
||||||
|
Loading…
Reference in New Issue
Block a user