From f93df35e6ca7cb60ad78b4d6ee05daa81a3a8195 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 9 Oct 2022 14:03:23 +0100 Subject: [PATCH] Only set line width when wideLines feature is supported --- .../skyline/gpu/interconnect/maxwell_3d/active_state.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 aeb02618..5112b988 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 @@ -305,7 +305,11 @@ namespace skyline::gpu::interconnect::maxwell3d { LineWidthState::LineWidthState(dirty::Handle dirtyHandle, DirtyManager &manager, const EngineRegisters &engine) : engine{manager, dirtyHandle, engine} {} void LineWidthState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) { - builder.SetLineWidth(engine->aliasedLineWidthEnable ? engine->lineWidthAliased : engine->lineWidth); + float width{engine->aliasedLineWidthEnable ? engine->lineWidthAliased : engine->lineWidth}; + if (width != 1.0f && !ctx.gpu.traits.supportsWideLines) + Logger::Warn("Wide lines used on guest but unsupported on host!"); + else + builder.SetLineWidth(width); } /* Depth Bias */