mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed setting matrix array in material
This commit is contained in:
@@ -168,7 +168,7 @@ namespace GlitchyEngine.Renderer
|
|||||||
{
|
{
|
||||||
entry.Variable.EnsureTypeMatch<Matrix>();
|
entry.Variable.EnsureTypeMatch<Matrix>();
|
||||||
|
|
||||||
Internal.MemCpy(&RawPointer!<Matrix>(entry.Offset), values.Ptr, Math.Min(values.Count, entry.Variable._elements));
|
Internal.MemCpy(&RawPointer!<Matrix>(entry.Offset), values.Ptr, sizeof(Matrix) * Math.Min(values.Count, entry.Variable._elements));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user