From dc2594c81b5d67cc290f88ca846c5285ba45a412 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 15 Sep 2008 12:40:17 +0000 Subject: Added -d debug option for blenderplayer, and remove some invalid/unnecessary opengl calls on shader errors. --- source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/gameengine/GamePlayer/ghost') diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index c4e738c1896..8fd23318df1 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -52,6 +52,7 @@ extern "C" { #endif // __cplusplus +#include "MEM_guardedalloc.h" #include "BKE_global.h" #include "BKE_icons.h" #include "BKE_node.h" @@ -185,6 +186,7 @@ void usage(char* program) #ifdef _WIN32 printf(" -c: keep console window open\n"); #endif + printf(" -d: turn debugging on\n"); printf(" -g: game engine options:\n"); printf(" Name Default Description\n"); printf(" ----------------------------------------\n"); @@ -414,6 +416,12 @@ int main(int argc, char** argv) } } break; + + case 'd': + i++; + G.f |= G_DEBUG; /* std output printf's */ + MEM_set_memory_debug(); + break; case 'p': // Parse window position and size options -- cgit v1.2.3