Mercurial > octave
diff libinterp/corefcn/gl-render.h @ 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 | 67d2965af0b5 |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.h Thu Feb 04 17:13:12 2016 -0500 +++ b/libinterp/corefcn/gl-render.h Thu Feb 04 18:12:00 2016 -0500 @@ -63,6 +63,8 @@ virtual void set_viewport (int w, int h); virtual graphics_xform get_transform (void) const { return xform; } + virtual void finish (void); + protected: virtual void draw_figure (const figure::properties& props); virtual void draw_axes (const axes::properties& props);