# HG changeset patch # User John W. Eaton # Date 1285570280 14400 # Node ID 811d8f1134238ed91d73c504fb1180fbd71caa37 # Parent df2152514429459e18ccd97e97c3b1ec60fcba17 reverse order in which child objects are processed in OpenGL renderer diff -r df2152514429 -r 811d8f113423 src/ChangeLog --- a/src/ChangeLog Sun Sep 26 22:23:23 2010 -0700 +++ b/src/ChangeLog Mon Sep 27 02:51:20 2010 -0400 @@ -1,3 +1,8 @@ +2010-09-27 John W. Eaton + + * gl-render.cc (opengl_renderer::draw_axes): Reverse order in + which child objects are processed. + 2010-09-26 Rik * DLD-FUNCTIONS/regexp.cc (regexp, regexprep, regexpi): Update diff -r df2152514429 -r 811d8f113423 src/gl-render.cc --- a/src/gl-render.cc Sun Sep 26 22:23:23 2010 -0700 +++ b/src/gl-render.cc Mon Sep 27 02:51:20 2010 -0400 @@ -1631,7 +1631,10 @@ // 1st pass: draw light objects - for (int i = 0; i < children.numel (); i++) + // Start with the last element of the array of child objects to + // display them in the oder they were added to the array. + + for (octave_idx_type i = children.numel () - 1; i >= 0; i--) { graphics_object go = gh_manager::get_object (children (i));