mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-29 15:33:35 -06:00
rsx: Fix broken shaders when depth format conversion is enabled with no format conversion code active
This commit is contained in:
parent
daa53c8642
commit
41e036473a
@ -413,6 +413,11 @@ namespace glsl
|
||||
enabled_options.push_back("_ENABLE_FORMAT_CONVERSION");
|
||||
}
|
||||
|
||||
if (props.require_depth_conversion)
|
||||
{
|
||||
enabled_options.push_back("_ENABLE_DEPTH_FORMAT_RECONSTRUCTION");
|
||||
}
|
||||
|
||||
program_common::define_glsl_switches(OS, enabled_options);
|
||||
enabled_options.clear();
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ R"(
|
||||
_texture_bx2_active = false; \
|
||||
} while (false)
|
||||
#define TEX_FLAGS(index) ((TEX_PARAM(index).flags & ~(_texture_flag_erase)) | _texture_flag_override)
|
||||
#elif defined(_ENABLE_TEXTURE_ALPHA_KILL) || defined(_ENABLE_FORMAT_CONVERSION)
|
||||
#elif defined(_ENABLE_TEXTURE_ALPHA_KILL) || defined(_ENABLE_FORMAT_CONVERSION) || defined(_ENABLE_DEPTH_FORMAT_RECONSTRUCTION)
|
||||
#define TEX_FLAGS(index) (TEX_PARAM(index).flags)
|
||||
#else
|
||||
#define TEX_FLAGS(index) 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user