X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=context.h;h=9b72eaf9f1d79be4b0b6ec92c5d455acab7ab2a7;hb=b987f5b45720dcaf6582d1b9f9f7c18537df47ab;hp=aeda12b61d950721ca6432f4415b3b0eb28fbbf5;hpb=8b098c0c040147d98db10ed6e1e817ac2d39e377;p=nageru diff --git a/context.h b/context.h index aeda12b..9b72eaf 100644 --- a/context.h +++ b/context.h @@ -9,6 +9,7 @@ class QGLWidget; 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);