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:
authorMitchell Stokes <mogurijin@gmail.com>2012-10-08 05:25:21 +0400
committerMitchell Stokes <mogurijin@gmail.com>2012-10-08 05:25:21 +0400
commit99dd59f08c4825fb1f97ea7d94b644047466021a (patch)
tree03439ab99bebdf18c273537fa3e53360c751f66e
parent5807726ca749af5b1a7fc4387febc473349b2789 (diff)
BGE: Disable depth testing when drawing the overhead profile information in the Blenderplayer. This keeps the text from being blocked by geometry in the scene.
-rw-r--r--source/gameengine/GamePlayer/common/GPC_RenderTools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
index 9cd6715f3d2..4bf81bf543e 100644
--- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
+++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp
@@ -359,7 +359,8 @@ void GPC_RenderTools::RenderText2D(RAS_TEXT_RENDER_MODE mode,
glGetIntegerv(GL_LIGHTING, (GLint*)&light);
glDisable(GL_LIGHTING);
-
+ glDisable(GL_DEPTH_TEST);
+
// Set up viewing settings
glMatrixMode(GL_PROJECTION);
glPushMatrix();