diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-05 08:54:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-05 09:01:58 +0300 |
commit | 57e1a5373f41e0cd6c628abdc836fd807ffc4adf (patch) | |
tree | 0609d256b2e3a22815970279319f3fdf867edf1b /source/blender/editors | |
parent | 4e27f638286ea011ed4ddf6e6ec0f419ac01ab4a (diff) |
Fix T43531: Wrong object center-dot color
Write objects center point to the nearest depth.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 81f4dce3135..6ac2f426ed7 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -740,6 +740,8 @@ static void drawcentercircle(View3D *v3d, RegionView3D *rv3d, const float co[3], /* using gldepthfunc guarantees that it does write z values, * but not checks for it, so centers remain visible independent order of drawing */ if (v3d->zbuf) glDepthFunc(GL_ALWAYS); + /* write to near buffer always */ + glDepthRange(0.0, 0.0); glEnable(GL_BLEND); if (special_color) { @@ -769,6 +771,7 @@ static void drawcentercircle(View3D *v3d, RegionView3D *rv3d, const float co[3], /* finish up */ glDisableClientState(GL_VERTEX_ARRAY); + glDepthRange(0.0, 1.0); glDisable(GL_BLEND); if (v3d->zbuf) glDepthFunc(GL_LEQUAL); |