summaryrefslogtreecommitdiffstats
path: root/src/render/SpecialFX.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-27 23:47:47 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-27 23:47:47 +0200
commitfcf90116016ac60a4bde533985920a8a0e56c3d1 (patch)
tree5a0efda5118107cbeaf6eb396fa50ae630c33750 /src/render/SpecialFX.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-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/SpecialFX.cpp')
-rw-r--r--src/render/SpecialFX.cpp6
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));