Commit 0f2cc1eb authored by schultz's avatar schultz

removed windows DebugContext workaround

parent 44ac98c9
......@@ -100,17 +100,6 @@ void glViewer::startGLDebugLogger()
if (OpenFlipper::Options::debug())
{
delete glDebugLogger_;
//workaround for windows, because the DebugContext flag is discarded by QMainWindow show in core.cc
#ifdef WIN32
QOpenGLContext* ctx = QOpenGLContext::currentContext();
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
ctx->setFormat(format);
ctx->create();
QOffscreenSurface* surface = new QOffscreenSurface();
surface->create();
ctx->makeCurrent(surface);
#endif
///////////////////////////////////////////////////////////////////////////////////////////////////
glDebugLogger_ = new QOpenGLDebugLogger(this);
if (glDebugLogger_->initialize())
{
......
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