warning: assignment makes pointer from integer without a cast
GLvoid *ptr = glMapBuffer(GL_ARRAY_BUFFER,GL_READ_WRITE);
Is my library screwed up? :lol: The prototype is there in glext.h:
GLAPI GLvoid* APIENTRY glMapBuffer (GLenum, GLenum);
Also, I notice there is a “glMapBufferARB” which is not documented – which one should I use? (altho they both return this warning, the “pointer” is always NULL/0, and I always get a GL_INVALID_OPERATION).
Just to be clear, the call is like this:
glBindBufferARB(GL_ARRAY_BUFFER_ARB, obj.ID); ptr = glMapBufferARB(GL_ARRAY_BUFFER_ARB,GL_READ_ONLY);
And variations involving the ARB suffix that all cause the same issue.
I am guessing there is a problem with library, since pretty obviously it is supposed to be of type GLvoid*. Never seen this before. I’m going to try compiling this on a different system now I guess.