fix possible pointer dereference
fix possible pointer dereference

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