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 traced the code and it uses a method switch_to_GL1() in the OpenGL graphics driver that I don't understand. I'll have to hand this to Manolo. As an aside, if we implement a second OpenGL3 graphics driver, I can reimplement the FLTK drawing calls to use GL3 instead of GL1, so there is no need for this context switching. Manolo?
Le mardi 22 novembre 2022 à 12:18:01 UTC+1, Matthias a écrit :I traced the code and it uses a method switch_to_GL1() in the OpenGL graphics driver that I don't understand. I'll have to hand this to Manolo. As an aside, if we implement a second OpenGL3 graphics driver, I can reimplement the FLTK drawing calls to use GL3 instead of GL1, so there is no need for this context switching. Manolo?Is this proposal to implement, say, class Fl_OpenGL3_Graphics_Driver that would use GL3 in additionto the existing GL1-based class Fl_OpenGL_Graphics_Driver, and to use the new driver to draw into GL3 windows ?
That would remove indeed the need for the context switching. Please, notice this driver would not be necessaryunder X11 and Windows. Notice also the need for a solution for text drawing compatible with both GL1 and GL3 contexts.
Hmm, so you can mix OGL and OGL3 on other platforms?
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)..