Merge pull request #201 from cbranch/cbranch/fix-pos-test-arm64

Fix undefined behaviour converting 3D postest registers
This commit is contained in:
zeromus 2018-10-05 18:17:20 -04:00 committed by GitHub
commit 5ebc0ca21d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1946,7 +1946,7 @@ void gfx3d_glAlphaFunc(u32 v)
u32 gfx3d_glGetPosRes(const size_t index)
{
return (u32)(PTcoords[index] * 4096.0f);
return (u32)(s32)(PTcoords[index] * 4096.0f);
}
//#define _3D_LOG_EXEC