mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
add _DEBUG_SHADERS define
This commit is contained in:
@@ -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();
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user