mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-14 09:04:31 +02:00
add _DEBUG_SHADERS define
This commit is contained in:
@@ -224,7 +224,9 @@ namespace Game {
|
|||||||
level->flipMap();
|
level->flipMap();
|
||||||
Input::down[ikF] = false;
|
Input::down[ikF] = false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _DEBUG_SHADERS
|
||||||
if (Input::down[ikCtrl] && Input::down[ik1]) {
|
if (Input::down[ikCtrl] && Input::down[ik1]) {
|
||||||
delete shaderCache;
|
delete shaderCache;
|
||||||
shaderCache = new ShaderCache();
|
shaderCache = new ShaderCache();
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
|
//#define _DEBUG_SHADERS
|
||||||
|
|
||||||
#ifdef _OS_WIN
|
#ifdef _OS_WIN
|
||||||
#include <gl/GL.h>
|
#include <gl/GL.h>
|
||||||
#include <gl/glext.h>
|
#include <gl/glext.h>
|
||||||
@@ -373,7 +375,7 @@ namespace GAPI {
|
|||||||
default : ASSERT(false); LOG("! wrong pass id\n"); return;
|
default : ASSERT(false); LOG("! wrong pass id\n"); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG_SHADERS
|
||||||
Stream *stream = NULL;
|
Stream *stream = NULL;
|
||||||
switch (pass) {
|
switch (pass) {
|
||||||
case Core::passCompose :
|
case Core::passCompose :
|
||||||
@@ -454,7 +456,7 @@ namespace GAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG_SHADERS
|
||||||
delete[] sourceData;
|
delete[] sourceData;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user