Commit aea8d2f2 authored by Martin Schultz's avatar Martin Schultz
Browse files

Merge branch 'featureCoreProfile' of...

Merge branch 'featureCoreProfile' of https://www.graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper into featureCoreProfile
parents 092c0d3a 35fc6e83
......@@ -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