def get_buffer_manager():
    context = gl.current_context
    if not hasattr(context, 'image_buffer_manager'):
        context.image_buffer_manager = BufferManager()
    return context.image_buffer_manager

# XXX BufferImage could be generalised to support EXT_framebuffer_object's
# renderbuffer.
Get the buffer manager for the current OpenGL context.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/image/__init__.py/get_buffer_manager