Fix 'sizeof' which broke in my reference-to-pointer conversion.

This commit is contained in:
comex 2014-10-25 15:02:12 -04:00
parent e51676fdf1
commit 5c2a470b97
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
#define MY_STRUCT_OFFSET(str,elem) ((u32)((u64)&(str).elem-(u64)&(str)))
bool enable_pl = g_ActiveConfig.bEnablePixelLighting;
uid_data->num_values = (enable_pl) ? sizeof(uid_data) : MY_STRUCT_OFFSET(*uid_data,stagehash[numStages]);
uid_data->num_values = (enable_pl) ? sizeof(*uid_data) : MY_STRUCT_OFFSET(*uid_data,stagehash[numStages]);
if (numStages)