summaryrefslogtreecommitdiffstats
path: root/src/weapons/WeaponEffects.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-11-29 17:19:50 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-02 12:21:46 +0100
commitbd8b907d131ac9e5b471a0a31928849b95f5d1f0 (patch)
treeab3102ea352daf603903342baf4aa696d6cacf56 /src/weapons/WeaponEffects.cpp
parentsome nasty FIX_BUGS for SLIDE_OBJECT (diff)
downloadre3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.gz
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.bz2
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.lz
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.xz
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.tar.zst
re3-bd8b907d131ac9e5b471a0a31928849b95f5d1f0.zip
Diffstat (limited to '')
-rw-r--r--src/weapons/WeaponEffects.cpp4
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;