X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=context.h;h=13dbf248f8cd4289b781de3b2e0d000803529ba9;hb=e284d1c7a2e18ee7e4aea082c4a57a3504a0f5e8;hp=aeda12b61d950721ca6432f4415b3b0eb28fbbf5;hpb=8b098c0c040147d98db10ed6e1e817ac2d39e377;p=nageru diff --git a/context.h b/context.h index aeda12b..13dbf24 100644 --- a/context.h +++ b/context.h @@ -7,8 +7,10 @@ class QOpenGLContext; class QSurfaceFormat; class QGLWidget; +extern bool using_egl; extern QGLWidget *global_share_widget; QSurface *create_surface(const QSurfaceFormat &format); +QSurface *create_surface_with_same_format(const QSurface *surface); QOpenGLContext *create_context(const QSurface *surface); bool make_current(QOpenGLContext *context, QSurface *surface); void delete_context(QOpenGLContext *context);