I am not able to enable depth testing on my MX31 device. The same code, seems to work on windows. Here is my code:

Code :
   glEnable(GL_TEXTURE_2D); 
	glEnable(GL_DEPTH_TEST);
	glBindTexture(GL_TEXTURE_2D, texture);
 
	glTexParameterx( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
	glTexParameterx( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
	glEnableClientState(GL_VERTEX_ARRAY);
	glVertexPointer(3,GL_FIXED,0,afVertices);
	glEnableClientState(GL_TEXTURE_COORD_ARRAY);
	glTexCoordPointer(2,GL_FLOAT,0,afTexCoord);
	if( GL_TRUE == glIsEnabled(GL_DEPTH_TEST) )
	{
   //NEVER ENTERS THIS
		fprintf(stdout, "DrawQuad -> DepthTest is enabled");
		glDrawArrays(GL_TRIANGLES, 0, 6);
	}

What are the possible reasons why a glEnable(GL_DEPTH_TEST) would fail? Thanks in advance.