diff options
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 7e97e3297..f23b8e2ab 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -180,16 +180,8 @@ void Fl_Gl_Window::make_current() { // correct parent window size to work with... GLint xywh[4]; - if (window()) { - int xoff,yoff; - const Fl_Window *win = top_window_offset(xoff, yoff); // STR #2944 [2] - xywh[0] = xoff; - xywh[1] = win->h() - yoff - h(); - } else { - xywh[0] = 0; - xywh[1] = 0; - } - + xywh[0] = 0; + xywh[1] = 0; xywh[2] = w(); xywh[3] = h(); |
