OGL: Use unique_ptr instead of pointer when taking screenshot.
Merge pull request #1161 from rohit-n/ogl-vector

OGL: Use unique_ptr instead of pointer when taking screenshot.