avoid vla in screenshot functions
avoid vla in screenshot functions

JohnRThomas/opengl-examples,runewake2/opengl-examples,runewake2/opengl-examples,runewake2/opengl-examples,JohnRThomas/opengl-examples,JohnRThomas/opengl-examples,JohnRThomas/opengl-examples,runewake2/opengl-examples