Mercurial > octave
changeset 25853:0e30f072d009
replace gluOrtho2D with equivalent call to glOrtho
* __init_fltk__.cc (OpenGL_fltk::overlay): Replace call to gluOrtho2D
with call to glOrtho with nearval = -1 and farval = 1.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 05 Sep 2018 09:09:13 -0400 |
parents | f6537847b043 |
children | d19dfcc862d4 |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Tue Sep 04 18:22:43 2018 +0200 +++ b/libinterp/dldfcn/__init_fltk__.cc Wed Sep 05 09:09:13 2018 -0400 @@ -250,7 +250,7 @@ glMatrixMode (GL_PROJECTION); glPushMatrix (); glLoadIdentity (); - gluOrtho2D (0.0, w (), 0.0, h ()); + glOrtho (0.0, w (), 0.0, h (), -1, 1); glPushAttrib (GL_DEPTH_BUFFER_BIT | GL_CURRENT_BIT); glDisable (GL_DEPTH_TEST);