From 9df287b415cd4d67a7a371c4cc89a11ebb8340f6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 29 Apr 2021 10:40:02 +0200 Subject: Cleaner access to Fl_Gl_Window_Driver objects. --- src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/OpenGL') diff --git a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx index 121c0dba4..1d0b25ccf 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx @@ -40,7 +40,7 @@ Fl_OpenGL_Display_Device::Fl_OpenGL_Display_Device(Fl_OpenGL_Graphics_Driver *gr Fl_RGB_Image* Fl_OpenGL_Display_Device::capture_gl_rectangle(Fl_Gl_Window* glw, int x, int y, int w, int h) { - return glw->gl_driver()->capture_gl_rectangle(x, y, w, h); + return Fl_Gl_Window_Driver::driver(glw)->capture_gl_rectangle(x, y, w, h); } /* Captures a rectangle of a Fl_Gl_Window and returns it as a RGB image. -- cgit v1.2.3