jzy3d / panama-gl

10 stars 1 forks source link

GLUT Windows never appears / GLUT Warning: glutInit being called a second time #16

Open jzy3d opened 1 year ago

jzy3d commented 1 year ago

I solved this by noticing that console shows

GLUT Warning: glutInit being called a second time

Which was surprising since my program really called it once.

I got clue from this discussion, where someone suggests that glutInit must be called before any other call to OpenGL.

I solved this by invoking glutInit at the first line of my program and commenting where it was called initially.