diff options
author | aap <aap@papnet.eu> | 2020-11-11 19:10:22 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-11 19:10:22 +0100 |
commit | 0115b0827b7b689f31defb5528cee6619f9a3ec0 (patch) | |
tree | a6b557da565287d7d0aa8e7129e70bebf4a2387a /src | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar.gz re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar.bz2 re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar.lz re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar.xz re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.tar.zst re3-0115b0827b7b689f31defb5528cee6619f9a3ec0.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/render/Hud.cpp | 4 | ||||
-rw-r--r-- | src/weapons/WeaponEffects.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
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); diff --git a/src/weapons/WeaponEffects.cpp b/src/weapons/WeaponEffects.cpp index 7a5be722..42d4f52c 100644 --- a/src/weapons/WeaponEffects.cpp +++ b/src/weapons/WeaponEffects.cpp @@ -94,7 +94,11 @@ CWeaponEffects::Render(void) RwRenderStateSet(rwRENDERSTATEZTESTENABLE, (void *)FALSE); RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)TRUE); RwRenderStateSet(rwRENDERSTATESRCBLEND, (void *)rwBLENDSRCALPHA); +#ifdef FIX_BUGS + RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDINVSRCALPHA); +#else RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDINVDESTALPHA); +#endif RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void *)gpCrossHairRaster); RwV3d pos; |