XbPixelShader: Use empty local to avoid undefined behavior

This commit is contained in:
darkf 2020-04-06 19:46:40 -07:00
parent e4371adf5e
commit c821ac0f02
1 changed files with 2 additions and 1 deletions

View File

@ -6596,10 +6596,11 @@ inline void HandleInputOutput
// As first do the ab operation // As first do the ab operation
char szCmd[100]="\0"; char szCmd[100]="\0";
char empty[8] = "";
BOOL bOptimized = OptimizeOperation( BOOL bOptimized = OptimizeOperation(
szABOp, szABOp,
szCDOp, szCDOp,
bVAccess[2] ? "" : szABCDOp, bVAccess[2] ? empty : szABCDOp,
szOutputMod, szOutputMod,
#ifdef REVEL8N_PIXEL_SHADER_CHANGES #ifdef REVEL8N_PIXEL_SHADER_CHANGES