Skip to content
  • Benjamin Otte's avatar
    gl: Move vfunc · 9f1d6e1f
    Benjamin Otte authored
    Instead of
      Display::make_gl_context_current()
    we now have
      GLContext::clear_current()
      GLContext::make_current()
    
    This fits better with the backends (we can actually implement
    clearCurrent on macOS now) and makes it easier to implement different GL
    backends for backends (like EGL/GLX on X11).
    
    We also pass a surfaceless boolean to make_current() so the calling code
    can decide if a surface needs to be bound or not, because the backends
    were all doing whatever, which was very counterproductive.
    9f1d6e1f