Mercurial > jwe > octave
changeset 25058:f776e458d2e3 stable
Avoid warning from opengl_renderer about light object (bug #53511).
* gl-render.cc (draw_axes_children): Keep current_light and num_lights in sync.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 30 Mar 2018 18:01:17 +0200 |
parents | 6bc4958b224b |
children | 85867171af5f |
files | libinterp/corefcn/gl-render.cc |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc Fri Mar 30 11:05:31 2018 +0200 +++ b/libinterp/corefcn/gl-render.cc Fri Mar 30 18:01:17 2018 +0200 @@ -2018,6 +2018,7 @@ // display them in the order they were added to the array. num_lights = 0; + current_light = GL_LIGHT0; draw_all_lights (props, obj_list); // disable other OpenGL lights