corrected opengl drawing error

Hi, 
I got your branch to work, but I had to make minor corrections to the opengl drawing.

Thanks,
Paul