diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-27 23:47:47 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-27 23:47:47 +0200 |
commit | fcf90116016ac60a4bde533985920a8a0e56c3d1 (patch) | |
tree | 5a0efda5118107cbeaf6eb396fa50ae630c33750 /src/render | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
download | re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar.gz re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar.bz2 re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar.lz re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar.xz re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.tar.zst re3-fcf90116016ac60a4bde533985920a8a0e56c3d1.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/SpecialFX.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp index fc081fa3..7e08fbad 100644 --- a/src/render/SpecialFX.cpp +++ b/src/render/SpecialFX.cpp @@ -298,6 +298,12 @@ void CBulletTraces::Render(void) if (!aTraces[i].m_bInUse) continue; RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)FALSE); +#ifdef FIX_BUGS + // Raster has no transparent pixels so it relies on the raster format having alpha + // to turn on blending. librw image conversion might get rid of it right now so let's + // just force it on. + RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)TRUE); +#endif RwRenderStateSet(rwRENDERSTATESRCBLEND, (void*)rwBLENDONE); RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDONE); RwRenderStateSet(rwRENDERSTATETEXTURERASTER, RwTextureGetRaster(gpShadowExplosionTex)); |