From 0115b0827b7b689f31defb5528cee6619f9a3ec0 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 11 Nov 2020 19:10:22 +0100 Subject: fix wrong blend mode (original bug) --- src/render/Hud.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render') diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index ed78ac4c..239d0de4 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -360,7 +360,11 @@ void CHud::Draw() RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void*)TRUE); RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)FALSE); RwRenderStateSet(rwRENDERSTATESRCBLEND, (void*)rwBLENDSRCALPHA); +#ifdef FIX_BUGS + RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVSRCALPHA); +#else RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVDESTALPHA); +#endif RwRenderStateSet(rwRENDERSTATETEXTURERASTER, RwTextureGetRaster(gpLaserDotTex)); #ifdef FIX_BUGS int intensity = CGeneral::GetRandomNumberInRange(0, 37); -- cgit v1.2.3