summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-10 14:24:29 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-10 14:53:31 -0400
commit636fedff122dc254ec77ea5504cf8d94acd8b351 (patch)
treed559305a23160bcb523c2ec2e2ade251f22d9d70 /common
parent2a50fccd24e762d0de5a53bac358e5ddfea8d213 (diff)
downloadqtlocation-mapboxgl-636fedff122dc254ec77ea5504cf8d94acd8b351.tar.gz
make context active before clearing 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 f790d90cec..0fce223986 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -113,6 +113,8 @@ void HeadlessView::resize(int width, int height) {
}
void HeadlessView::clear_buffers() {
+ make_active();
+
#if MBGL_USE_CGL
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);