I have been trying to get the poygon mode from opengl. How do we get the proper GLenum
value for the 2 symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, or filled polygons.
Sorry for bumping this 23 year old thread, but this response is wrong and it appears as the first google response to any search about opengl get polygon mode.
To get the polygon mode, you need to declare the polygonMode as an array of two elements or it will cause a buffer overflow: