Skip to content

Commit

Permalink
Limit ALPHREF value
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Apr 19, 2024
1 parent 1166024 commit be2aad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7002
#define BUILD_NUMBER 7003
3 changes: 3 additions & 0 deletions ddraw/IDirect3DDeviceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2784,6 +2784,9 @@ HRESULT m_IDirect3DDeviceX::SetRenderState(D3DRENDERSTATETYPE dwRenderStateType,
default:
return DDERR_INVALIDPARAMS;
}
case D3DRENDERSTATE_ALPHAREF: // 24
dwRenderState &= 0xFF;
break;
case D3DRENDERSTATE_ALPHABLENDENABLE: // 27
rsAlphaBlendEnabled = dwRenderState;
break;
Expand Down

0 comments on commit be2aad9

Please sign in to comment.