mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
possible bug in one pass alpha render
This commit is contained in:
parent
8baf3a6321
commit
99f14e4c60
1 changed files with 2 additions and 6 deletions
|
@ -272,15 +272,11 @@ RpAtomic* OnePassAlphaRender(RpAtomic* atomic)
|
||||||
BOOL nAlphaBlending;
|
BOOL nAlphaBlending;
|
||||||
|
|
||||||
RwRenderStateGet(rwRENDERSTATEVERTEXALPHAENABLE, &nAlphaBlending);
|
RwRenderStateGet(rwRENDERSTATEVERTEXALPHAENABLE, &nAlphaBlending);
|
||||||
|
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(TRUE));
|
||||||
|
|
||||||
// RW caches those anyway, no need to duplicate caching
|
|
||||||
//if ( nAlphaBlending != TRUE )
|
|
||||||
// RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(TRUE));
|
|
||||||
atomic = AtomicDefaultRenderCallBack(atomic);
|
atomic = AtomicDefaultRenderCallBack(atomic);
|
||||||
|
|
||||||
//if ( nAlphaBlending != TRUE )
|
|
||||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(nAlphaBlending));
|
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(nAlphaBlending));
|
||||||
|
|
||||||
return atomic;
|
return atomic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue