Update OGLExport.cpp

Safer and optimized implementation