summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-16 18:06:24 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-16 18:06:24 -0400
commitd48e5e72213851e4ffb443eae1b6243f491682c3 (patch)
treeba8c9fcee7853b452c880127db48daafac717ee4 /common
parent9d369ec742f00e35fea97fe24415ecaaaad1f01a (diff)
downloadqtlocation-mapboxgl-d48e5e72213851e4ffb443eae1b6243f491682c3.tar.gz
make_active only for CGL in clear_buffers
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index c2e402c0b6..8ea1b13709 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -114,6 +114,8 @@ void HeadlessView::resize(int width, int height) {
void HeadlessView::clear_buffers() {
#if MBGL_USE_CGL
+ make_active();
+
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
if (fbo) {