Skip to content
  • Benjamin Otte's avatar
    gdk: Move GL context construction to GdkGLContext · e06e0e85
    Benjamin Otte authored
    Now that we have the display's context to hook into, we can use it to
    construct other GL contexts and don't need a GdkSurface vfunc anymore.
    
    This has the added benefit that backends can have different GdkGLContext
    classes on the display and get new GLContexts generated from them, so
    we get multiple GL backend support per GDK backend for free.
    
    I originally wanted to make this a vfunc on GdkGLContextClass, but
    it turns out all the abckends would just call g_object_new() anyway.
    e06e0e85