diff options
author | aap <aap@papnet.eu> | 2020-12-29 20:30:57 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-29 20:30:57 +0100 |
commit | 14f7dbade88da108bf135aaeaaead9b14c654a14 (patch) | |
tree | f4cd6a350e04885473f7d7c6312c2ae897c96b4f /src/extras/custompipes_d3d9.cpp | |
parent | Add sdk to gitignore (diff) | |
download | re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar.gz re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar.bz2 re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar.lz re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar.xz re3-14f7dbade88da108bf135aaeaaead9b14c654a14.tar.zst re3-14f7dbade88da108bf135aaeaaead9b14c654a14.zip |
Diffstat (limited to 'src/extras/custompipes_d3d9.cpp')
-rw-r--r-- | src/extras/custompipes_d3d9.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp index 27006c6a..e670fc93 100644 --- a/src/extras/custompipes_d3d9.cpp +++ b/src/extras/custompipes_d3d9.cpp @@ -171,6 +171,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; } @@ -362,6 +365,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; } |