added freeGpuBuffers