GL_INAVLID_OPERATION error in glMap2f method

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,fMeshCtls);
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?

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.