gl/vk: Clean up vertex texture handling
- Clean up code after refactors
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -559,16 +559,19 @@ 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)
|
||||||
|
{
|
||||||
|
if (sampler_state->format_class != previous_format_class)
|
||||||
{
|
{
|
||||||
// Host details changed but RSX is not aware
|
// Host details changed but RSX is not aware
|
||||||
m_graphics_state |= rsx::vertex_program_state_dirty;
|
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);
|
||||||
const auto min_lod = tex.min_lod();
|
const auto min_lod = tex.min_lod();
|
||||||
|
|||||||
Reference in New Issue
Block a user