Unbreak build with HAVE_OPENGL undefined

fixup for cf69d1e294ceb63cfbadbff95836433c2314cf21
parent b47b65b7
......@@ -68,9 +68,11 @@ void KisOpenGL::initialize()
}
format.setSwapInterval(0); // Disable vertical refresh syncing
QSurfaceFormat::setDefaultFormat(format);
#endif
}
int KisOpenGL::initializeContext(QOpenGLContext* s) {
#ifdef HAVE_OPENGL
KisConfig cfg;
dbgUI << "OpenGL: Opening new context";
......@@ -115,6 +117,7 @@ int KisOpenGL::initializeContext(QOpenGLContext* s) {
NeedsFenceWorkaround = true;
}
#else
Q_UNUSED(s);
NeedsFenceWorkaround = false;
#endif
return glVersion;
......
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