Restore StageIndex--

This commit is contained in:
Luke Usher 2019-04-05 15:09:21 +01:00
parent 67569172cb
commit 04b311ec8c
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,6 @@ void UpdateDeferredTextureStates()
// This handles the case when XDKs have different state values
DWORD State = GetDeferredTextureStateFromIndex(StateIndex);
switch (State) {
case XTL::X_D3DTSS_ADDRESSU: case XTL::X_D3DTSS_ADDRESSV: case XTL::X_D3DTSS_ADDRESSW:
if (Value == XTL::X_D3DTADDRESS_CLAMPTOEDGE) {
@ -481,6 +480,7 @@ void UpdateDeferredTextureStates()
// Make sure we only do this once
if (pointSpriteOverride && StageIndex == 3) {
pointSpriteOverride = false;
StageIndex--;
}
}