make_active only for CGL in clear_buffers

This commit is contained in:
Mike Morris
2014-09-16 18:06:24 -04:00
parent 9d369ec742
commit d48e5e7221

View File

@@ -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) {