Allow shader parameters to be adjusted in size
This commit is contained in:
parent
9c3ac9ae9f
commit
aa9cef7bb0
@ -421,10 +421,6 @@ 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;
|
||||
|
||||
WriteRenderInfo(m, mat);
|
||||
|
Loading…
Reference in New Issue
Block a user