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.
This commit is contained in:
parent
5807726ca7
commit
99dd59f08c
@ -359,6 +359,7 @@ void GPC_RenderTools::RenderText2D(RAS_TEXT_RENDER_MODE mode,
|
|||||||
glGetIntegerv(GL_LIGHTING, (GLint*)&light);
|
glGetIntegerv(GL_LIGHTING, (GLint*)&light);
|
||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
|
|
||||||
|
glDisable(GL_DEPTH_TEST);
|
||||||
|
|
||||||
// Set up viewing settings
|
// Set up viewing settings
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
|
Loading…
Reference in New Issue
Block a user