diff --git a/common/headless_view.cpp b/common/headless_view.cpp index 563fd8f24..355206a3e 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