diff options
author | Ton Roosendaal <ton@blender.org> | 2008-10-12 15:13:35 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-10-12 15:13:35 +0400 |
commit | a146614a5ca47768176664c14afa0f5c585eee4c (patch) | |
tree | 46fd6026c9a946fdf51ea96c7c53150702a5a40a | |
parent | 2ee4feda268f5c73938f78d06321163d8eeb467a (diff) |
Small fix, ancient issue:
drawing object names in 3d window, zbuffered mode, didn't show up.
-rw-r--r-- | source/blender/src/drawobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 722b430714b..7ff7b20b3ea 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -5175,10 +5175,12 @@ void draw_object(Base *base, int flag) /* patch for several 3d cards (IBM mostly) that crash on glSelect with text drawing */ /* but, we also dont draw names for sets or duplicators */ if(flag == 0) { + if(G.vd->zbuf) glDisable(GL_DEPTH_TEST); glRasterPos3f(0.0, 0.0, 0.0); BMF_DrawString(G.font, " "); BMF_DrawString(G.font, ob->id.name+2); + if(G.vd->zbuf) glEnable(GL_DEPTH_TEST); } } /*if(dtx & OB_DRAWIMAGE) drawDispListwire(&ob->disp);*/ |