Unbreak build with HAVE_OPENGL undefined

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