Commit 9449c61d authored by Martin Schultz's avatar Martin Schultz

only recreate the Context on Windows OS, as linux and OSX keep the debug

flag
parent 0bd46583
...@@ -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