rsx: Fix flickering when initializing texture units
This commit is contained in:
@@ -159,6 +159,15 @@ namespace rsx
|
|||||||
bool host_snorm_format_active() const { return host_features & RSX_HOST_FORMAT_FEATURE_SNORM; }
|
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; }
|
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:
|
//private:
|
||||||
u32 format_bits = 0;
|
u32 format_bits = 0;
|
||||||
u32 features = 0;
|
u32 features = 0;
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ void GLGSRender::load_texture_env()
|
|||||||
m_graphics_state |= rsx::fragment_program_state_dirty;
|
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
|
// Nothing to change, use cached sampler
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ void VKGSRender::load_texture_env()
|
|||||||
m_graphics_state |= rsx::fragment_program_state_dirty;
|
m_graphics_state |= rsx::fragment_program_state_dirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs_sampler_handles[i])
|
if (sampler_state->format_ex)
|
||||||
{
|
{
|
||||||
// Nothing to change, use cached sampler
|
// Nothing to change, use cached sampler
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user