summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:10 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:10 +0200
commit9e65eb34ec834de082154ee7559cd1c418f02ae6 (patch)
treec0c12ec094feb67e7ad98c5e8d48440b37035421 /src/render
parentmissing ifded (diff)
downloadre3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.gz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.bz2
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.lz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.xz
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.tar.zst
re3-9e65eb34ec834de082154ee7559cd1c418f02ae6.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/2dEffect.h6
-rw-r--r--src/render/Clouds.cpp15
-rw-r--r--src/render/Rubbish.cpp12
-rw-r--r--src/render/Skidmarks.cpp9
4 files changed, 42 insertions, 0 deletions
diff --git a/src/render/2dEffect.h b/src/render/2dEffect.h
index 62216bca..b0615e4d 100644
--- a/src/render/2dEffect.h
+++ b/src/render/2dEffect.h
@@ -76,8 +76,14 @@ public:
if(type == EFFECT_LIGHT){
if(light.corona)
RwTextureDestroy(light.corona);
+#ifdef GTA3_1_1_PATCH
+ light.corona = nil;
+#endif
if(light.shadow)
RwTextureDestroy(light.shadow);
+#ifdef GTA3_1_1_PATCH
+ light.shadow = nil;
+#endif
}
}
};
diff --git a/src/render/Clouds.cpp b/src/render/Clouds.cpp
index 58dc3f93..d4246a15 100644
--- a/src/render/Clouds.cpp
+++ b/src/render/Clouds.cpp
@@ -44,10 +44,25 @@ void
CClouds::Shutdown(void)
{
RwTextureDestroy(gpCloudTex[0]);
+#ifdef GTA3_1_1_PATCH
+ gpCloudTex[0] = nil;
+#endif
RwTextureDestroy(gpCloudTex[1]);
+#ifdef GTA3_1_1_PATCH
+ gpCloudTex[1] = nil;
+#endif
RwTextureDestroy(gpCloudTex[2]);
+#ifdef GTA3_1_1_PATCH
+ gpCloudTex[2] = nil;
+#endif
RwTextureDestroy(gpCloudTex[3]);
+#ifdef GTA3_1_1_PATCH
+ gpCloudTex[3] = nil;
+#endif
RwTextureDestroy(gpCloudTex[4]);
+#ifdef GTA3_1_1_PATCH
+ gpCloudTex[4] = nil;
+#endif
}
void
diff --git a/src/render/Rubbish.cpp b/src/render/Rubbish.cpp
index 31110046..8a0b80e8 100644
--- a/src/render/Rubbish.cpp
+++ b/src/render/Rubbish.cpp
@@ -414,7 +414,19 @@ void
CRubbish::Shutdown(void)
{
RwTextureDestroy(gpRubbishTexture[0]);
+#ifdef GTA3_1_1_PATCH
+ gpRubbishTexture[0] = nil;
+#endif
RwTextureDestroy(gpRubbishTexture[1]);
+#ifdef GTA3_1_1_PATCH
+ gpRubbishTexture[1] = nil;
+#endif
RwTextureDestroy(gpRubbishTexture[2]);
+#ifdef GTA3_1_1_PATCH
+ gpRubbishTexture[2] = nil;
+#endif
RwTextureDestroy(gpRubbishTexture[3]);
+#ifdef GTA3_1_1_PATCH
+ gpRubbishTexture[3] = nil;
+#endif
}
diff --git a/src/render/Skidmarks.cpp b/src/render/Skidmarks.cpp
index f3479536..5d521041 100644
--- a/src/render/Skidmarks.cpp
+++ b/src/render/Skidmarks.cpp
@@ -54,8 +54,17 @@ void
CSkidmarks::Shutdown(void)
{
RwTextureDestroy(gpSkidTex);
+#ifdef GTA3_1_1_PATCH
+ gpSkidTex = nil;
+#endif
RwTextureDestroy(gpSkidBloodTex);
+#ifdef GTA3_1_1_PATCH
+ gpSkidBloodTex = nil;
+#endif
RwTextureDestroy(gpSkidMudTex);
+#ifdef GTA3_1_1_PATCH
+ gpSkidMudTex = nil;
+#endif
}
void