From cdf85352c42dd2f3b43703897148e8fa513c9cdc Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 17 Apr 2016 15:36:23 +0000 Subject: virtualized some Region calls. There is a deeper issue here: regions should be handled by the graphics driver that is associated with the Fl_Window of this widget... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/gl_start.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gl_start.cxx') diff --git a/src/gl_start.cxx b/src/gl_start.cxx index 9eaf36c05..bfb50e3ce 100644 --- a/src/gl_start.cxx +++ b/src/gl_start.cxx @@ -89,7 +89,7 @@ void gl_start() { int x, y, w, h; if (fl_clip_box(0, 0, Fl_Window::current()->w(), Fl_Window::current()->h(), x, y, w, h)) { - fl_clip_region(Fl_Graphics_Driver::XRectangleRegion(x,y,w,h)); + fl_clip_region(Fl_Graphics_Driver::default_driver().XRectangleRegion(x,y,w,h)); glScissor(x, Fl_Window::current()->h()-(y+h), w, h); glEnable(GL_SCISSOR_TEST); } else { -- cgit v1.2.3