make context active before clearing buffers

This commit is contained in:
Mike Morris
2014-09-10 14:24:29 -04:00
parent 2a50fccd24
commit 636fedff12

View File

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