Small fix to the previous commit.
This commit is contained in:
parent
5c14a24ce1
commit
a021dd7b79
|
@ -243,6 +243,9 @@ void GetSafePixelShaderId(PIXELSHADERUIDSAFE *uid, DSTALPHA_MODE dstAlphaMode)
|
||||||
|
|
||||||
void ValidatePixelShaderIDs(API_TYPE api, PIXELSHADERUIDSAFE old_id, const std::string& old_code, DSTALPHA_MODE dstAlphaMode, u32 components)
|
void ValidatePixelShaderIDs(API_TYPE api, PIXELSHADERUIDSAFE old_id, const std::string& old_code, DSTALPHA_MODE dstAlphaMode, u32 components)
|
||||||
{
|
{
|
||||||
|
if (!g_ActiveConfig.bEnableShaderDebugging)
|
||||||
|
return;
|
||||||
|
|
||||||
PIXELSHADERUIDSAFE new_id;
|
PIXELSHADERUIDSAFE new_id;
|
||||||
GetSafePixelShaderId(&new_id, dstAlphaMode);
|
GetSafePixelShaderId(&new_id, dstAlphaMode);
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,9 @@ void GetSafeVertexShaderId(VERTEXSHADERUIDSAFE *uid, u32 components)
|
||||||
|
|
||||||
void ValidateVertexShaderIDs(API_TYPE api, VERTEXSHADERUIDSAFE old_id, const std::string& old_code, u32 components)
|
void ValidateVertexShaderIDs(API_TYPE api, VERTEXSHADERUIDSAFE old_id, const std::string& old_code, u32 components)
|
||||||
{
|
{
|
||||||
|
if (!g_ActiveConfig.bEnableShaderDebugging)
|
||||||
|
return;
|
||||||
|
|
||||||
VERTEXSHADERUIDSAFE new_id;
|
VERTEXSHADERUIDSAFE new_id;
|
||||||
GetSafeVertexShaderId(&new_id, components);
|
GetSafeVertexShaderId(&new_id, components);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue