FLTK logo

[fltk.coredev] Re: Problems with two macOS opengl3 windows drawing widgets with opengl2 ( bad draw and crashes on exit)

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Problems with two macOS opengl3 windows drawing widgets with opengl2 ( bad draw and crashes on exit) Manolo Nov 22, 2022  
 

Le mardi 22 novembre 2022 à 08:52:59 UTC+1, ggar...@gmail.com a écrit :

Find attached a modified version of OpenGL3text.cxx which crashes on exit on macOS.
Two OpenGL3 windows drawing widgets are created but only on the second window the buttons appear (and without labels)..

I believe there was a problem with memory deallocation that should be fixed with commit 4daec2a.

Your program may also have other problems because program OpenGL3test.cxx is not meant for
2 GL3 scenes  and contains global variables (Fl_Text_Display *output) and static variables
(e.g., bool first) that won't work well with 2 objects from class SimpleGL3Window.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/7455a936-1bc9-4bf0-8c4c-196ee0c22e78n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]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'.