This commit is contained in:
MysterD 2023-05-04 01:43:01 -07:00
parent f8829186b7
commit 822c31bfe4
1 changed files with 2 additions and 3 deletions

View File

@ -214,9 +214,8 @@ static void rot_mat_to_rot_quat(Vec4f q, Vec3f a[3]) {
: 3;
// adjust signs of coefficients; base on greatest magnitude to improve float accuracy
switch (maxCompoMagCase) {
f32 divFactor = 0;
switch (maxCompoMagCase) {
case 0:
divFactor = 0.25f / q[0];
q[1] = (a[1][2] - a[2][1]) * divFactor;
@ -505,7 +504,7 @@ void delta_interpolate_mtx_accurate(Mtx* out, Mtx* a, Mtx* b, f32 delta) {
void delta_interpolate_mtx(Mtx* out, Mtx* a, Mtx* b, f32 delta) {
// HACK: Limit accurate interpolation to 64-bit builds
if (sizeof(int) > 4) {
if (sizeof(void*) > 4) {
if (configInterpolationMode) {
delta_interpolate_mtx_accurate(out, a, b, delta);
return;