Fixed major memory leak where GL buffers were allocated on each frame