summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-24 15:17:42 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-24 15:17:42 -0400
commitc5a7738dd640604a523e6e069cba92940d502614 (patch)
tree7f80aa2385013dcb9bb2d5dd7fe4723765b0896b
parent0cdaf58027b758650f4bb7ca7a006cb8568c080c (diff)
downloadqtlocation-mapboxgl-c5a7738dd640604a523e6e069cba92940d502614.tar.gz
move make_active call into MBGL_USE_CGL block
-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 d38a450070..6ab005b6cf 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -114,9 +114,9 @@ void HeadlessView::resize(int width, int height) {
}
void HeadlessView::clear_buffers() {
+#if MBGL_USE_CGL
make_active();
-#if MBGL_USE_CGL
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
if (fbo) {