When exporting struct buffers we must always allocate memory to readback
When exporting struct buffers we must always allocate memory to readback

* If the external code has a NULL pointer and doesn't want to allocate
  but we are exporting buffer data, we still need to read the data
  somewhere so make a temporary allocation to read it into.

michaelrgb/renderdoc,googlestadia/renderdoc,googlestadia/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,googlestadia/renderdoc,baldurk/renderdoc,etnlGD/renderdoc,etnlGD/renderdoc,cgmb/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,googlestadia/renderdoc,etnlGD/renderdoc,googlestadia/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_public,cgmb/renderdoc,Zorro666/renderdoc,etnlGD/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,michaelrgb/renderdoc,michaelrgb/renderdoc,michaelrgb/renderdoc,googlestadia/renderdoc,TurtleRockStudios/renderdoc_public,etnlGD/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,cgmb/renderdoc,Zorro666/renderdoc,michaelrgb/renderdoc,baldurk/renderdoc,baldurk/renderdoc