diff --git a/src/game.h b/src/game.h index b1a1bc5..f6cb605 100644 --- a/src/game.h +++ b/src/game.h @@ -224,7 +224,9 @@ namespace Game { level->flipMap(); Input::down[ikF] = false; } + #endif + #ifdef _DEBUG_SHADERS if (Input::down[ikCtrl] && Input::down[ik1]) { delete shaderCache; shaderCache = new ShaderCache(); diff --git a/src/gapi_gl.h b/src/gapi_gl.h index 2e4cc1b..1de6b52 100644 --- a/src/gapi_gl.h +++ b/src/gapi_gl.h @@ -3,6 +3,8 @@ #include "core.h" +//#define _DEBUG_SHADERS + #ifdef _OS_WIN #include #include @@ -373,7 +375,7 @@ namespace GAPI { default : ASSERT(false); LOG("! wrong pass id\n"); return; } - #ifdef _DEBUG + #ifdef _DEBUG_SHADERS Stream *stream = NULL; switch (pass) { case Core::passCompose : @@ -454,7 +456,7 @@ namespace GAPI { } } - #ifdef _DEBUG + #ifdef _DEBUG_SHADERS delete[] sourceData; #endif