From d48e5e72213851e4ffb443eae1b6243f491682c3 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Tue, 16 Sep 2014 18:06:24 -0400 Subject: make_active only for CGL in clear_buffers --- common/headless_view.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.1