reapply fix that was inadvertantly removed
reapply fix that was inadvertantly removed

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