Fix various compilation warnings
This commit is contained in:
@@ -85,7 +85,7 @@ void ParticleMaterialShader::Bind(BindParameters& params)
|
||||
{
|
||||
const StringView name(param.GetName().Get() + 9, param.GetName().Length() - 9);
|
||||
const int32 offset = drawCall.Particle.Particles->Layout->FindAttributeOffset(name);
|
||||
ASSERT_LOW_LAYER(bindMeta.Constants.Get() && bindMeta.Constants.Length() >= (int32)param.GetBindOffset() + sizeof(int32));
|
||||
ASSERT_LOW_LAYER(bindMeta.Constants.Get() && bindMeta.Constants.Length() >= (int32)(param.GetBindOffset() + sizeof(int32)));
|
||||
*((int32*)(bindMeta.Constants.Get() + param.GetBindOffset())) = offset;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user