diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-16 18:00:52 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-16 18:00:52 -0400 |
commit | 9d369ec742f00e35fea97fe24415ecaaaad1f01a (patch) | |
tree | 2b8872a2a53d5eb72917b37895dd5598ff556d30 /common | |
parent | 70aaf8d343ab0dc80993038bd13148b20de0b83e (diff) | |
download | qtlocation-mapboxgl-9d369ec742f00e35fea97fe24415ecaaaad1f01a.tar.gz |
dont make_active when clearing buffers, call make_inactive at end of Map::prepare()
Diffstat (limited to 'common')
-rw-r--r-- | common/headless_view.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp index 355206a3ee..c2e402c0b6 100644 --- a/common/headless_view.cpp +++ b/common/headless_view.cpp @@ -113,8 +113,6 @@ void HeadlessView::resize(int width, int height) { } void HeadlessView::clear_buffers() { - make_active(); - #if MBGL_USE_CGL glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); @@ -181,8 +179,6 @@ void HeadlessView::make_active() { } void HeadlessView::make_inactive() { - clear_buffers(); - #if MBGL_USE_CGL CGLError error = CGLSetCurrentContext(nullptr); if (error) { |