vk: Set line width when rasterizing points (workaround)

- Fixes point rendering when using AMD drivers.
This commit is contained in:
kd-11 2022-11-07 22:51:20 +03:00 committed by kd-11
parent de5217745c
commit e98b07de03

View File

@ -130,7 +130,7 @@ void VKGSRender::update_draw_state()
m_profiler.start();
// Update conditional dynamic state
if (rsx::method_registers.current_draw_clause.primitive >= rsx::primitive_type::lines &&
if (rsx::method_registers.current_draw_clause.primitive >= rsx::primitive_type::points && // AMD/AMDVLK driver does not like it if you render points without setting line width for some reason
rsx::method_registers.current_draw_clause.primitive <= rsx::primitive_type::line_strip)
{
const float actual_line_width =