summaryrefslogtreecommitdiffstats
path: root/src/monitor-lib/systemreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor-lib/systemreader.cpp')
-rw-r--r--src/monitor-lib/systemreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/monitor-lib/systemreader.cpp b/src/monitor-lib/systemreader.cpp
index c02d9b0d..e89c1ad0 100644
--- a/src/monitor-lib/systemreader.cpp
+++ b/src/monitor-lib/systemreader.cpp
@@ -154,6 +154,7 @@ GpuVendor::Vendor GpuVendor::get()
void GpuVendor::fetch()
{
QByteArray vendor;
+#if !defined(QT_NO_OPENGL)
auto readVendor = [&vendor](QOpenGLContext *c) {
const GLubyte *p = c->functions()->glGetString(GL_VENDOR);
if (p)
@@ -173,6 +174,7 @@ void GpuVendor::fetch()
context.doneCurrent();
}
}
+#endif
if (vendor.contains("intel"))
s_vendor = Intel;
else if (vendor.contains("nvidia"))