C#: use stackalloc to create the pivot arrays in Projection.Inverse
This commit is contained in:
parent
8f78e7510d
commit
2ebfeef4a8
1 changed files with 2 additions and 2 deletions
|
|
@ -674,8 +674,8 @@ namespace Godot
|
|||
{
|
||||
Projection proj = this;
|
||||
int i, j, k;
|
||||
int[] pvt_i = new int[4];
|
||||
int[] pvt_j = new int[4]; /* Locations of pivot matrix */
|
||||
Span<int> pvt_i = stackalloc int[4];
|
||||
Span<int> pvt_j = stackalloc int[4]; /* Locations of pivot matrix */
|
||||
real_t pvt_val; /* Value of current pivot element */
|
||||
real_t hold; /* Temporary storage */
|
||||
real_t determinant = 1.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue