Skip to content

Commit

Permalink
Corrected Rendering Engine Destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyQBD committed May 30, 2014
1 parent 251b734 commit 8b735c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Unix-GenCodeBlocksProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ./
3 changes: 3 additions & 0 deletions src/renderingEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8b735c1

Please sign in to comment.