gl/vk: Clean up vertex texture handling

- Clean up code after refactors
This commit is contained in:
kd-11
2026-02-24 01:35:33 +03:00
committed by kd-11
parent 4fa3aaf2b5
commit 94cd6a6f9e
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ void GLGSRender::load_texture_env()
continue; continue;
} }
if (m_vertex_textures_dirty[i]) if (is_sampler_dirty)
{ {
m_vs_sampler_states[i].apply(tex, vs_sampler_state[i].get()); m_vs_sampler_states[i].apply(tex, vs_sampler_state[i].get());
} }
+10 -7
View File
@@ -559,15 +559,18 @@ void VKGSRender::load_texture_env()
check_for_cyclic_refs |= true; check_for_cyclic_refs |= true;
} }
if (!is_sampler_dirty && sampler_state->format_class != previous_format_class) if (!is_sampler_dirty)
{ {
// Host details changed but RSX is not aware if (sampler_state->format_class != previous_format_class)
m_graphics_state |= rsx::vertex_program_state_dirty; {
} // Host details changed but RSX is not aware
m_graphics_state |= rsx::vertex_program_state_dirty;
}
if (!is_sampler_dirty && vs_sampler_handles[i]) if (vs_sampler_handles[i])
{ {
continue; continue;
}
} }
const VkBool32 unnormalized_coords = !!(tex.format() & CELL_GCM_TEXTURE_UN); const VkBool32 unnormalized_coords = !!(tex.format() & CELL_GCM_TEXTURE_UN);