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:24:29 -0400
commit4316d2c40585e3d0dcdb25fa6f2341531025e20e (patch)
tree7cac8655f6566d46a003e53a327961efbbf8fd54 /common
parent2e2c7befac062505d3120c2f40f299dcd97771af (diff)
downloadqtlocation-mapboxgl-4316d2c40585e3d0dcdb25fa6f2341531025e20e.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);