Mercurial > octave
changeset 24183:cbb3e02244a4
Fix regression introduced by cset 78ff6ba5cbb1 (bug #52293).
* gl-render.cc (openglrenderer::draw_surface): fix color indexing
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sat, 28 Oct 2017 23:08:09 +0200 |
parents | abf23a479369 |
children | 7dd3ab97ccd5 |
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 Sat Oct 28 18:09:44 2017 -0700 +++ b/libinterp/corefcn/gl-render.cc Sat Oct 28 23:08:09 2017 +0200 @@ -2385,7 +2385,7 @@ fa = props.get_facealpha_double (); if (fc_mode == UNIFORM || fc_mode == TEXTURE) { - glColor4d (fcolor(1), fcolor(2), fcolor(3), fa); + glColor4d (fcolor(0), fcolor(1), fcolor(2), fa); if (fl_mode > 0) { for (int i = 0; i < 3; i++)