summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-24 14:40:49 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-24 14:40:49 -0400
commit0cdaf58027b758650f4bb7ca7a006cb8568c080c (patch)
tree15492327e63fc6dedff3bd85c71db894590c9cf1
parent8e1bbae81f61d7a5a86c959b0880a2a18842264b (diff)
downloadqtlocation-mapboxgl-0cdaf58027b758650f4bb7ca7a006cb8568c080c.tar.gz
add debugging
-rw-r--r--common/headless_view.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 0fce223986..d38a450070 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -2,6 +2,7 @@
#include <mbgl/util/timer.hpp>
#include <stdexcept>
+#include <iostream>
namespace mbgl {
@@ -155,6 +156,10 @@ HeadlessView::~HeadlessView() {
#endif
#if MBGL_USE_GLX
+ std::cerr << "~HeadlessView()" << '\n';
+ std::cerr << "x_display: " << x_display << '\n';
+ std::cerr << "glx_pixmap: " << glx_pixmap << '\n';
+ std::cerr << "gl_context: " << gl_context << '\n';
glXMakeCurrent(x_display, None, NULL);
glXDestroyContext(x_display, gl_context);
XFree(x_info);
@@ -175,6 +180,10 @@ void HeadlessView::make_active() {
#endif
#if MBGL_USE_GLX
+ std::cerr << "make_active()" << '\n';
+ std::cerr << "x_display: " << x_display << '\n';
+ std::cerr << "glx_pixmap: " << glx_pixmap << '\n';
+ std::cerr << "gl_context: " << gl_context << '\n';
if (!glXMakeCurrent(x_display, glx_pixmap, gl_context)) {
fprintf(stderr, "Switching OpenGL context failed\n");
}