Le vendredi 16 septembre 2022 à 11:38:22 UTC+2, imacarthur a écrit :
Oh, hold on! I just remembered, this code also works on my old macOS
box too (which is IIRC 10.13). When did Apple break the GL2/GL3
compatibility, because it seems to work fine on my old Mac...
It is possible I am "getting away with it" because the drawing isn't
mixed in a single context, there's some textures drawn using GL2 that
are then passed to a couple of GL3 rendering stages...
Disclaimer: I ignore totally how GL2 or GL3 are supposed to be programmed.
My understanding is that on day one macOS begun to support GL3, it did so
in an exclusive mode: either GL2 or GL3, never both.
@Ian : do you think your technique to draw part of a scene with GL2 and use
the result in GL3 or vice versa could be used to support adding, under macOS,
FLTK widgets (which are drawn by Fl_OpenGL_Graphics_Driver using GL2) to
a GL3-based Fl_Gl_Window ? Do you have any hint about how to
draw first with GL3 and second with GL2 to the same Fl_Gl_Window under X11
and Windows? As written in the previous post, I believe to know how to do that
under Wayland, but that fails under X11.