diff options
author | erorcun <erayorcunus@gmail.com> | 2020-12-02 12:35:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 12:35:06 +0100 |
commit | 774aa1570fc4985b1a713b5979ffe16719a991c0 (patch) | |
tree | cd49718c4ab2a9f3c899b7e6627055faa4b14406 /src/weapons/WeaponEffects.cpp | |
parent | cam lod dist fix (diff) | |
parent | PlayerPed and "Redefine controls" menu done, fixes (diff) | |
download | re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.gz re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.bz2 re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.lz re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.xz re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.zst re3-774aa1570fc4985b1a713b5979ffe16719a991c0.zip |
Diffstat (limited to 'src/weapons/WeaponEffects.cpp')
-rw-r--r-- | src/weapons/WeaponEffects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/weapons/WeaponEffects.cpp b/src/weapons/WeaponEffects.cpp index 42d4f52c..b0df610f 100644 --- a/src/weapons/WeaponEffects.cpp +++ b/src/weapons/WeaponEffects.cpp @@ -8,7 +8,6 @@ #include "WeaponType.h" RwTexture *gpCrossHairTex; -RwRaster *gpCrossHairRaster; CWeaponEffects gCrossHair; @@ -40,7 +39,6 @@ CWeaponEffects::Init(void) CTxdStore::SetCurrentTxd(slot); gpCrossHairTex = RwTextureRead("target256", "target256m"); - gpCrossHairRaster = RwTextureGetRaster(gpCrossHairTex); CTxdStore::PopCurrentTxd(); } @@ -99,7 +97,7 @@ CWeaponEffects::Render(void) #else RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void *)rwBLENDINVDESTALPHA); #endif - RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void *)gpCrossHairRaster); + RwRenderStateSet(rwRENDERSTATETEXTURERASTER, (void *)RwTextureGetRaster(gpCrossHairTex)); RwV3d pos; float w, h; |