1
0
mirror of synced 2024-12-01 02:27:22 +01:00

Allow shader parameters to be adjusted in size

This commit is contained in:
KillzXGaming 2019-11-15 20:05:42 -05:00
parent 9c3ac9ae9f
commit aa9cef7bb0

View File

@ -421,11 +421,7 @@ namespace FirstPlugin
mat.ShaderParamData = new byte[0];
byte[] ParamData = WriteShaderParams(m, mat);
if (ParamData.Length != mat.ShaderParamData.Length)
throw new Exception("Param size mis match!");
else
mat.ShaderParamData = ParamData;
mat.ShaderParamData = ParamData;
WriteRenderInfo(m, mat);
WriteTextureRefs(m, mat, ResFile);