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; }