summaryrefslogtreecommitdiff
path: root/chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp')
-rw-r--r--chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp b/chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp
index 3513309f36a..792305f5503 100644
--- a/chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp
+++ b/chromium/third_party/angle/src/gpu_info_util/SystemInfo_x11.cpp
@@ -30,7 +30,7 @@ bool GetNvidiaDriverVersionWithXNVCtrl(std::string *version)
Display *display = XOpenDisplay(nullptr);
- if (XNVCTRLQueryExtension(display, &eventBase, &errorBase))
+ if (display && XNVCTRLQueryExtension(display, &eventBase, &errorBase))
{
int screenCount = ScreenCount(display);
for (int screen = 0; screen < screenCount; ++screen)