From d0d34f7327ee1720f57a24691f66fdca0bc4455e Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 20 Apr 2020 20:37:59 +0200 Subject: [PATCH] more silly bugs --- src/d3d/d3d9matfx.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/d3d/d3d9matfx.cpp b/src/d3d/d3d9matfx.cpp index b7e0de8..07eb1f9 100644 --- a/src/d3d/d3d9matfx.cpp +++ b/src/d3d/d3d9matfx.cpp @@ -244,10 +244,20 @@ createMatFXShaders(void) void destroyMatFXShaders(void) { - destroyVertexShader(matfx_env_PS); + destroyVertexShader(matfx_env_amb_VS); + matfx_env_amb_VS = nil; + + destroyVertexShader(matfx_env_amb_dir_VS); + matfx_env_amb_dir_VS = nil; + + destroyVertexShader(matfx_env_all_VS); + matfx_env_all_VS = nil; + + + destroyPixelShader(matfx_env_PS); matfx_env_PS = nil; - destroyVertexShader(matfx_env_tex_PS); + destroyPixelShader(matfx_env_tex_PS); matfx_env_tex_PS = nil; }