fixed opengl examples not drawing