diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-04-29 10:40:02 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-04-29 10:40:18 +0200 |
| commit | 9df287b415cd4d67a7a371c4cc89a11ebb8340f6 (patch) | |
| tree | c918ed8ee29b088555746e7ad391e425b1aa920f /src/drivers/OpenGL | |
| parent | f9e8ef0b7acd645a6327eb9d8fb76ce99481b0f9 (diff) | |
Cleaner access to Fl_Gl_Window_Driver objects.
Diffstat (limited to 'src/drivers/OpenGL')
| -rw-r--r-- | src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
