Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-15 16:40:17 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-15 16:40:17 +0400
commitdc2594c81b5d67cc290f88ca846c5285ba45a412 (patch)
tree1eda1227129fa8b32f84fc48c557195d6b7ed6ef /source/gameengine/GamePlayer/ghost
parentfd3a40a12969085c16927bd2b2240f9ac98d951f (diff)
Added -d debug option for blenderplayer, and remove some
invalid/unnecessary opengl calls on shader errors.
Diffstat (limited to 'source/gameengine/GamePlayer/ghost')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp8
1 files changed, 8 insertions, 0 deletions
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