Commit 35fc6e83 authored by Martin Schultz's avatar Martin Schultz
Browse files

Merge branch 'unstable' into featureCoreProfile

parents b04af161 9449c61d
...@@ -101,12 +101,14 @@ ...@@ -101,12 +101,14 @@
namespace { namespace {
void recreateContext() void recreateContext()
{ {
#ifdef WIN32
QOpenGLContext* ctx = QOpenGLContext::currentContext(); QOpenGLContext* ctx = QOpenGLContext::currentContext();
QSurfaceFormat format = QSurfaceFormat::defaultFormat(); QSurfaceFormat format = QSurfaceFormat::defaultFormat();
ctx->setFormat(format); ctx->setFormat(format);
ctx->create(); ctx->create();
QOffscreenSurface* surface = new QOffscreenSurface(); QOffscreenSurface* surface = new QOffscreenSurface();
ctx->makeCurrent(surface); ctx->makeCurrent(surface);
#endif
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment