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

Merge branch 'unstable' into featureCoreProfile

parents b04af161 9449c61d
......@@ -101,12 +101,14 @@
namespace {
void recreateContext()
{
#ifdef WIN32
QOpenGLContext* ctx = QOpenGLContext::currentContext();
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
ctx->setFormat(format);
ctx->create();
QOffscreenSurface* surface = new QOffscreenSurface();
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