summaryrefslogtreecommitdiff
path: root/common/headless_view.cpp
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-10-06 16:53:57 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-10-06 16:53:57 -0400
commit8b06b65f35445a1dc8490ede523a23fab46529fa (patch)
tree144a532deb7f2f26625e65f620a2a22c32e6a1f2 /common/headless_view.cpp
parent170ce422ceb20126cd7dc7b184b5edbc0685c7e7 (diff)
downloadqtlocation-mapboxgl-8b06b65f35445a1dc8490ede523a23fab46529fa.tar.gz
wrap GL/glx.h with undef None, use 0 instead, h/t @jfirebaugh
Diffstat (limited to 'common/headless_view.cpp')
-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 86fa445fc8..cd8ee685d5 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -171,7 +171,7 @@ void HeadlessView::make_inactive() {
#endif
#if MBGL_USE_GLX
- if (!glXMakeCurrent(x_display, None, NULL)) {
+ if (!glXMakeCurrent(x_display, 0, NULL)) {
fprintf(stderr, "Removing OpenGL context failed\n");
}
#endif