GS/Vulkan: Set line width unconditionally on line draw

This commit is contained in:
Stenzek 2023-06-30 13:01:45 +10:00 committed by Connor McLaughlin
parent 64ed6f5572
commit d0ce4c52b0
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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<const GSTextureVK*, NUM_TFX_TEXTURES> m_tfx_textures{};