From d0ce4c52b0f95c41083537ed13449233e49a6af7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 30 Jun 2023 13:01:45 +1000 Subject: [PATCH] GS/Vulkan: Set line width unconditionally on line draw --- pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp | 2 +- pcsx2/GS/Renderers/Vulkan/GSDeviceVK.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp index fd7071520b..2dc58c356e 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp @@ -3617,7 +3617,7 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config) if (config.blend.constant_enable) SetBlendConstants(config.blend.constant); - if (config.line_expand) + if (config.topology == GSHWDrawConfig::Topology::Line) SetLineWidth(config.cb_ps.ScaleFactor.z); // Primitive ID tracking DATE setup. diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.h b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.h index e90a3a77d8..a25356ddbf 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.h +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.h @@ -416,7 +416,7 @@ private: GSVector4i m_scissor = GSVector4i::zero(); VkViewport m_viewport = {0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f}; - float m_current_line_width = -1.0f; + float m_current_line_width = 1.0f; u8 m_blend_constant_color = 0; std::array m_tfx_textures{};