FLTK logo

[master] 8a2559e - Wayland platform: add missing initialisation to Fl_Wayland_Gl_Window_Driver::gl_start().

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 8a2559e - Wayland platform: add missing initialisation to Fl_Wayland_Gl_Window_Driver::gl_start(). "ManoloFLTK" Jul 02, 2022  
 
commit 8a2559e1af0da2c33a05d466fdb37da1b5f8851b
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Jul 2 17:41:45 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Jul 2 17:41:45 2022 +0200

    Wayland platform: add missing initialisation to Fl_Wayland_Gl_Window_Driver::gl_start().

 src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index b37e0c4..5bf04fc 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ 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);
 }
 
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.