mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
fix: filling union members that are not supposed to be written
* This causes some pointers to be partially overwritten when filling in the wrong order as well
This commit is contained in:
@@ -46,4 +46,9 @@ set count GfxPixelShaderLoadDef::program programSize;
|
||||
use MaterialShaderArgument;
|
||||
set condition u::literalConst type == MTL_ARG_LITERAL_VERTEX_CONST
|
||||
|| type == MTL_ARG_LITERAL_PIXEL_CONST;
|
||||
set reusable u::literalConst;
|
||||
set reusable u::literalConst;
|
||||
set condition u::codeConst type == MTL_ARG_CODE_VERTEX_CONST
|
||||
|| type == MTL_ARG_CODE_PIXEL_CONST;
|
||||
set condition u::codeSampler type == MTL_ARG_CODE_PIXEL_SAMPLER;
|
||||
set condition u::nameHash type == MTL_ARG_MATERIAL_VERTEX_CONST
|
||||
|| type == MTL_ARG_MATERIAL_PIXEL_CONST || type == MTL_ARG_MATERIAL_PIXEL_SAMPLER;
|
||||
Reference in New Issue
Block a user