Clean up the VBO handling and use VAOs for mesh rendering. Always do a GLThreadCheck inside GLCheck