hi
I am checking error in my program with the following function:
void errorCheck(char * msg)
{
GLenum errCode;
const GLubyte *errString;
while ((errCode = glGetError()) != GL_NO_ERROR) {
errString = gluErrorString(errCode);
printf(">>===>> %s : %s\n", msg, errString);
fprintf(file, ">>===>> %s : %s\n", msg, errString);
}
}
and in my codes:
glBindBuffer(GL_ARRAY_BUFFER, TexCoordVBOID);
glBufferData(GL_ARRAY_BUFFER, 8*sizeof(GLfloat), aTexCoord, GL_STATIC_DRAW);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
errorCheck("in init quad");
glTexCoordPointer(2, GL_FLOAT, 2*sizeof(GLfloat), BUFFER_OFFSET(0));
after the glEnableClientState(GL_TEXTURE_COORD_ARRAY); it generated the following error: