make context active before clearing buffers