2 // Needs to be in its own file because Qt and libepoxy seemingly don't coexist well
3 // within the same file.
10 extern bool using_egl;
11 extern QGLWidget *global_share_widget;
12 QSurface *create_surface(const QSurfaceFormat &format);
13 QSurface *create_surface_with_same_format(const QSurface *surface);
14 QOpenGLContext *create_context(const QSurface *surface);
15 bool make_current(QOpenGLContext *context, QSurface *surface);
16 void delete_context(QOpenGLContext *context);