rsx: Fix flickering when initializing texture units

This commit is contained in:
kd-11 2026-02-24 01:25:29 +03:00 committed by kd-11
parent 34f0e865ac
commit 4fa3aaf2b5
3 changed files with 11 additions and 2 deletions

View file

@ -159,6 +159,15 @@ namespace rsx
bool host_snorm_format_active() const { return host_features & RSX_HOST_FORMAT_FEATURE_SNORM; }
bool host_srgb_format_active() const { return host_features & RSX_HOST_FORMAT_FEATURE_SRGB; }
operator bool() const { return valid(); }
bool operator == (const texture_format_ex& that) const
{
return this->format_bits == that.format_bits &&
this->features == that.features &&
this->host_features == that.host_features;
}
//private:
u32 format_bits = 0;
u32 features = 0;

View file

@ -342,7 +342,7 @@ void GLGSRender::load_texture_env()
m_graphics_state |= rsx::fragment_program_state_dirty;
}
if (m_fs_sampler_states[i])
if (sampler_state->format_ex)
{
// Nothing to change, use cached sampler
continue;

View file

@ -334,7 +334,7 @@ void VKGSRender::load_texture_env()
m_graphics_state |= rsx::fragment_program_state_dirty;
}
if (fs_sampler_handles[i])
if (sampler_state->format_ex)
{
// Nothing to change, use cached sampler
continue;