summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 563fd8f245..355206a3ee 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -191,7 +191,7 @@ void HeadlessView::make_inactive() {
#endif
#if MBGL_USE_GLX
- if (!glXMakeCurrent(x_display, None, nullptr)) {
+ if (!glXMakeCurrent(x_display, None, NULL)) {
fprintf(stderr, "Removing OpenGL context failed\n");
}
#endif