Added GL support for mapBuffer