Skip to content
  • Emmanuele Bassi's avatar
    gdk: Allow querying if a GL context is in legacy mode · 2dfca143
    Emmanuele Bassi authored
    We want to have the ability to fall back to legacy GL contexts when
    creating them. In order to do so, we need to store the legacy bit on the
    GdkGLContext, as well as being able to query it.
    
    Setting the legacy bit from outside GDK is not possible; we cannot
    create GL contexts in 3.2 core profile *and* compatibility modes at the
    same time, and if we allowed users to select the legacy mode themselves,
    it would break the creation of the GdkWindow's paint GL context.
    
    What we do allow is falling back to legacy GL context if the platform
    does not support 3.2 core profiles — for instance, on older GPUs or
    inside virtualized environments.
    
    We are also going to use the legacy bit internally, to choose which GL
    API we can use when drawing GL content.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756142
    2dfca143