summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-27 12:31:38 +0200
committeraap <aap@papnet.eu>2020-04-27 12:31:38 +0200
commitd9c987bd8cab184420557921a1c364285114ca36 (patch)
tree5110454569c4f917b8bf007bff21b2d0b98f9ef0 /src/render
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-d9c987bd8cab184420557921a1c364285114ca36.tar
re3-d9c987bd8cab184420557921a1c364285114ca36.tar.gz
re3-d9c987bd8cab184420557921a1c364285114ca36.tar.bz2
re3-d9c987bd8cab184420557921a1c364285114ca36.tar.lz
re3-d9c987bd8cab184420557921a1c364285114ca36.tar.xz
re3-d9c987bd8cab184420557921a1c364285114ca36.tar.zst
re3-d9c987bd8cab184420557921a1c364285114ca36.zip
Diffstat (limited to 'src/render')
-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));