changeset 18658:75ec138ba53b

Fix Z-order stacking of line markers and other graphic objects (bug #40054). gl-render.cc (opengl_renderer::draw_line): If no zdata, use 0 for zdata rather than 1/n where n is the number of markers to be drawn.
author Rik <rik@octave.org>
date Tue, 15 Apr 2014 14:00:30 -0700
parents 93d0fc8a5d86
children cce0a63afb3c
files libinterp/corefcn/gl-render.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Sun Apr 13 11:27:18 2014 -0400
+++ b/libinterp/corefcn/gl-render.cc	Tue Apr 15 14:00:30 2014 -0700
@@ -1548,7 +1548,7 @@
         {
           if (clip[i] == clip_ok)
             draw_marker (x(i), y(i),
-                         has_z ? z(i) : static_cast<double> (i) / n,
+                         has_z ? z(i) : 0.0,
                          lc, fc);
         }