1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

add _DEBUG_SHADERS define

This commit is contained in:
XProger
2018-11-25 06:44:15 +03:00
parent 407acbdf12
commit d28d38127c
2 changed files with 6 additions and 2 deletions

View File

@@ -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();

View File

@@ -3,6 +3,8 @@
#include "core.h"
//#define _DEBUG_SHADERS
#ifdef _OS_WIN
#include <gl/GL.h>
#include <gl/glext.h>
@@ -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