X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=context.h;h=9b72eaf9f1d79be4b0b6ec92c5d455acab7ab2a7;hb=177725e4f259a75dcdbd4260ac57e5dd9c01fd57;hp=c670473015054c4156fadc39f6337b6318b17012;hpb=95295bd41bc711bbc450ac6f5ccc68e64fefffa3;p=nageru diff --git a/context.h b/context.h index c670473..9b72eaf 100644 --- a/context.h +++ b/context.h @@ -9,5 +9,7 @@ class QGLWidget; extern QGLWidget *global_share_widget; QSurface *create_surface(const QSurfaceFormat &format); -QOpenGLContext *create_context(); +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);