mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-10 07:24:54 +01:00
rsx: Fix flickering when initializing texture units
This commit is contained in:
parent
34f0e865ac
commit
4fa3aaf2b5
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue