Added support for multiple render buffers