FLTK logo

[master] 6c6a80b - Add detailed explanations in Fl_Wayland_Gl_Window_Driver::make_current_before()

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] 6c6a80b - Add detailed explanations in Fl_Wayland_Gl_Window_Driver::make_current_before() "ManoloFLTK" May 24, 2022  
 
commit 6c6a80b90ebe9ed59052da6134ec44f60f928012
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue May 24 11:07:04 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue May 24 11:07:04 2022 +0200

    Add detailed explanations in Fl_Wayland_Gl_Window_Driver::make_current_before()

 src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index d674884..66183d6 100644
--- src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -231,9 +231,13 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
     egl_surface = eglCreateWindowSurface(egl_display, g->egl_conf, egl_window, NULL);
 //fprintf(stderr, "Created egl surface=%p at scale=%d\n", egl_surface, win->scale);
     wl_surface_set_buffer_scale(surface, win->scale);
-//TODO It's still not entirely clear how to justify the value 5 below
-    int count = 0;
-    while (count++ < 5) {
+    // Tested apps: shape, glpuzzle, cube, fractals, gl_overlay, fullscreen,
+    //   OpenGL3-glut-test, OpenGL3test
+    // Tested wayland compositors: mutter, kde-plasma, weston, sway on FreeBSD
+    // Origin of the value 3 below :
+    // All tests run OK with value 3 whereas some tests fail with 2, e.g.,
+    // glpuzzle + KDE, glpuzzle + sway sometimes.
+    for (int count = 0; count < 3; count++) {
       wl_display_roundtrip(Fl_Wayland_Screen_Driver::wl_display);
       eglSwapBuffers(Fl_Wayland_Gl_Window_Driver::egl_display, egl_surface);
     }
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'.