Skip to content

Commit 148d8aa

Browse files
committed
Properly round down GS_REG_ST
According to the GS manual, the 8 lower bits of S and T of GS_REG_ST must be rounded down. This commit just masks them away, which just serves that purpose.
1 parent 245ad70 commit 148d8aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/gs/GSHandler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ void CGSHandler::WriteRegisterImpl(uint8 nRegister, uint64 nData)
611611

612612
switch(nRegister)
613613
{
614+
case GS_REG_ST:
615+
m_nReg[nRegister] &= 0xFFFFFF00FFFFFF00;
616+
break;
614617
case GS_REG_TEX0_1:
615618
case GS_REG_TEX0_2:
616619
{

0 commit comments

Comments
 (0)