possible bug in one pass alpha render

This commit is contained in:
Silent 2017-02-26 13:24:47 +01:00
parent 8baf3a6321
commit 99f14e4c60

View file

@ -272,15 +272,11 @@ RpAtomic* OnePassAlphaRender(RpAtomic* atomic)
BOOL 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);
//if ( nAlphaBlending != TRUE )
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(nAlphaBlending));
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(nAlphaBlending));
return atomic;
}