diff options
| author | skidau <skidau@gmail.com> | 2014-10-26 14:18:02 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-10-26 14:18:02 +1100 |
| commit | f895648eb95369e2d302ba93cc4354d3880a7337 (patch) | |
| tree | 4f3b95f4021ecd77034cad974a2dacab671c36d2 /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 38acd4d4bf177a821b835b0a6d176d710f86d5c6 (diff) | |
| parent | 5c2a470b97cdc2ec3881c8cae112f2208a5ea4a6 (diff) | |
Merge pull request #1396 from comex/star-star-star
Fix 'sizeof' which broke in my reference-to-pointer conversion.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 310801dd2d..4ef07dbb10 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -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) |
