FLTK logo

[master] ee37965 - Fix: Wayland use of alpha in glClearColor/glClear (#957)

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] ee37965 - Fix: Wayland use of alpha in glClearColor/glClear (#957) "ManoloFLTK" 05:32 Apr 22  
 
commit ee37965fad79a815feea3f8a4a6cfec03d4a9029
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Apr 22 14:27:16 2024 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Apr 22 14:27:42 2024 +0200

     Fix: Wayland use of alpha in glClearColor/glClear (#957)

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

diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index 8c14912..00c1ab0 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -299,6 +299,7 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
     Fl_Wayland_Gl_Choice *g = (Fl_Wayland_Gl_Choice*)this->g();
     egl_surface = eglCreateWindowSurface(egl_display, g->egl_conf, egl_window, NULL);
     wl_surface_set_buffer_scale(surface, scale);
+    if (mode() & FL_ALPHA) wl_surface_set_opaque_region(surface, NULL);
     // Tested apps: shape, glpuzzle, cube, fractals, gl_overlay, fullscreen, unittests,
     //   OpenGL3-glut-test, OpenGL3test.
     // Tested wayland compositors: mutter, kde-plasma, weston, sway on FreeBSD.
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'.