Merge pull request #201 from cbranch/cbranch/fix-pos-test-arm64
Fix undefined behaviour converting 3D postest registers
This commit is contained in:
commit
5ebc0ca21d
|
@ -1946,7 +1946,7 @@ void gfx3d_glAlphaFunc(u32 v)
|
||||||
|
|
||||||
u32 gfx3d_glGetPosRes(const size_t index)
|
u32 gfx3d_glGetPosRes(const size_t index)
|
||||||
{
|
{
|
||||||
return (u32)(PTcoords[index] * 4096.0f);
|
return (u32)(s32)(PTcoords[index] * 4096.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define _3D_LOG_EXEC
|
//#define _3D_LOG_EXEC
|
||||||
|
|
Loading…
Reference in New Issue