summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-29 20:31:06 +0100
committeraap <aap@papnet.eu>2020-12-29 20:31:06 +0100
commit426364b961603a031720910598c203289bc01722 (patch)
tree03ddce6f933835ea01ccc81fac663bca53af0d86 /src/extras
parentAdd sdk to gitignore (diff)
downloadre3-426364b961603a031720910598c203289bc01722.tar
re3-426364b961603a031720910598c203289bc01722.tar.gz
re3-426364b961603a031720910598c203289bc01722.tar.bz2
re3-426364b961603a031720910598c203289bc01722.tar.lz
re3-426364b961603a031720910598c203289bc01722.tar.xz
re3-426364b961603a031720910598c203289bc01722.tar.zst
re3-426364b961603a031720910598c203289bc01722.zip
Diffstat (limited to '')
-rw-r--r--src/extras/custompipes_d3d9.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp
index 28bf65d6..277a487d 100644
--- a/src/extras/custompipes_d3d9.cpp
+++ b/src/extras/custompipes_d3d9.cpp
@@ -172,6 +172,9 @@ DestroyVehiclePipe(void)
rw::d3d::destroyVertexShader(neoVehicle_VS);
neoVehicle_VS = nil;
+ rw::d3d::destroyPixelShader(neoVehicle_PS);
+ neoVehicle_PS = nil;
+
((rw::d3d9::ObjPipeline*)vehiclePipe)->destroy();
vehiclePipe = nil;
}
@@ -363,6 +366,12 @@ CreateGlossPipe(void)
void
DestroyGlossPipe(void)
{
+ rw::d3d::destroyVertexShader(neoGloss_VS);
+ neoGloss_VS = nil;
+
+ rw::d3d::destroyPixelShader(neoGloss_PS);
+ neoGloss_PS = nil;
+
((rw::d3d9::ObjPipeline*)glossPipe)->destroy();
glossPipe = nil;
}