Skip to content
Snippets Groups Projects

Fix windows debug context

Merged Martin Schultz requested to merge fixWindowsDebugContext into unstable
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -98,6 +98,18 @@
//== IMPLEMENTATION ==========================================================
namespace {
void recreateContext()
{
QOpenGLContext* ctx = QOpenGLContext::currentContext();
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
ctx->setFormat(format);
ctx->create();
QOffscreenSurface* surface = new QOffscreenSurface();
ctx->makeCurrent(surface);
}
}
/** \brief Constuctor for the Core Widget ( This is stage 1 , call init for stage 2)
*
* Initialization is working the following way:\n
@@ -653,6 +665,7 @@ Core::init() {
coreWidget_->splitter_->restoreState (windowStates.value("Core/LogSplitter").toByteArray ());
coreWidget_->show();
recreateContext();
applyOptions();
@@ -671,6 +684,8 @@ Core::init() {
} else {
coreWidget_->show();
recreateContext();
applyOptions();
}
Loading