Mercurial > octave
comparison libinterp/corefcn/gl-render.cc @ 21198:1adcdc518d9e
provide wrapper for glFinish in opengl_renderer class
* gl-render.h, gl-render.cc (opengl_renderer::finish): New function.
* gl2ps-renderer.h, gl2ps-renderer.cc, __osmesa_print__.cc: Use it
instead of calling glFinish directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Feb 2016 18:12:00 -0500 |
parents | bd96c2efd4fe |
children | fcac5dbbf9ed |
comparison
equal
deleted
inserted
replaced
21197:9a5bb6996b16 | 21198:1adcdc518d9e |
---|---|
823 | 823 |
824 wmax = std::max (wmax, static_cast<int> (b(2))); | 824 wmax = std::max (wmax, static_cast<int> (b(2))); |
825 hmax = std::max (hmax, static_cast<int> (b(3))); | 825 hmax = std::max (hmax, static_cast<int> (b(3))); |
826 } | 826 } |
827 } | 827 } |
828 } | |
829 | |
830 void | |
831 opengl_renderer::finish (void) | |
832 { | |
833 glFinish (); | |
828 } | 834 } |
829 | 835 |
830 void | 836 void |
831 opengl_renderer::setup_opengl_transformation (const axes::properties& props) | 837 opengl_renderer::setup_opengl_transformation (const axes::properties& props) |
832 { | 838 { |