diff --git a/Unix-GenCodeBlocksProject.sh b/Unix-GenCodeBlocksProject.sh index b53c14f..a609fd5 100755 --- a/Unix-GenCodeBlocksProject.sh +++ b/Unix-GenCodeBlocksProject.sh @@ -8,9 +8,7 @@ else BUILD_TARGET="$1" fi -#All remaining parameters are used as parameters to CMake - cd build -cmake -DCMAKE_BUILD_TYPE="$BUILD_TARGET" -G "CodeBlocks - Unix Makefiles" "${@:2}" ../ +cmake -DCMAKE_BUILD_TYPE="$BUILD_TARGET" -G "CodeBlocks - Unix Makefiles" ../ mv ../res/ ./ diff --git a/src/renderingEngine.cpp b/src/renderingEngine.cpp index f78cce8..6947fa4 100644 --- a/src/renderingEngine.cpp +++ b/src/renderingEngine.cpp @@ -50,6 +50,9 @@ RenderingEngine::RenderingEngine() RenderingEngine::~RenderingEngine() { if(m_defaultShader) delete m_defaultShader; + if(m_shadowMapShader) delete m_shadowMapShader; + if(m_nullFilter) delete m_nullFilter; + if(m_gausBlurFilter) delete m_gausBlurFilter; if(m_altCameraObject) delete m_altCameraObject; if(m_planeMaterial) delete m_planeMaterial; if(m_plane) delete m_plane;