PDA

View Full Version : GL_INAVLID_OPERATION error in glMap2f method



gauravp0110
09-09-2014, 12:56 AM
i am calling glMap2f() no of times but some times it is showing GL_INAVLID_OPERATION error in some cases..
i am calling method as
glMap2f(GL_MAP2_VERTEX_3, 0.0f,1.0f,3,nUOrder,0.0f,1.0f,3*nUOrder,nVOrder,fM eshCtls);
here fMeshCtrls is changing..
i am not calling this method between glBegin and glEnd...
and multitexturing is not used.
Any idea what is wrong with it?

henniman2
09-13-2014, 10:32 AM
According to spec it is considered an error if glMap2 is called and the value of GL_ACTIVE_TEXTURE is not GL_TEXTURE0
But theses glMap... etc are deprecated anyways ... implement your own.

Best
Henniman