diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-07-02 17:41:45 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-07-02 17:41:45 +0200 |
| commit | 8a2559e1af0da2c33a05d466fdb37da1b5f8851b (patch) | |
| tree | 2743dea25807232a5a85f4d64c9ac09b48c6ecf5 | |
| parent | 16ecd6b821897fe179f362bf0fb82ac012a0ab0c (diff) | |
Wayland platform: add missing initialisation to Fl_Wayland_Gl_Window_Driver::gl_start().
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx index b37e0c483..5bf04fc31 100644 --- a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx @@ -372,6 +372,8 @@ void Fl_Wayland_Gl_Window_Driver::gl_start() { int W2, H2; wl_egl_window_get_attached_size(egl_window, &W2, &H2); if (W2 != W || H2 != H) wl_egl_window_resize(egl_window, W, H, 0, 0); + glClearColor(0., 0., 0., 0.); + glClear(GL_COLOR_BUFFER_BIT); } |
