opengl 1.3 compatibility wit opengl 1.1

dear everybody,
i used to be a happy camper, using a double buffer opengl code with opengl 1.1. One day i switched to opengl 1.3 and my code stopped to show the combined images . it only shows my rgba image . Here is the code used. Any clue ?

	//clear the stencil buffer
	glClearStencil(0x0);

	//enable stencil buffering and clear stencil buffer
	glEnable(GL_STENCIL_TEST);
	glClear(GL_STENCIL_BUFFER_BIT);

	
	
	//Set current position for writing the first pixel, in object coordinates
	glRasterPos3d(winx, winy, winz);
	
	//disable the color buffer for writing
	glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);

	//set stencil values to 1 when the depth test passes
	glStencilFunc(GL_ALWAYS,1,1);
	glStencilOp(GL_KEEP,GL_KEEP,GL_REPLACE);

	//ensure depth testing is set  
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LESS);
	
	//draw the depth values to the frame buffer
	glDrawPixels(width, height, GL_DEPTH_COMPONENT, GL_FLOAT, pt_current);


	//set the stencil buffer to test for stencil values of 1
	glStencilFunc(GL_EQUAL,1,1);
	glStencilOp(GL_KEEP,GL_KEEP,GL_KEEP);

	//disable the depth testing
	glDisable(GL_DEPTH_TEST);
	
	//enable the color buffer for writing R G B A 
	glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);

	//draw the color values to the frame buffer
	glDrawPixels(width, height, GL_RGBA, GL_UNSIGNED_BYTE, ptcolor);
	
	//disable the stencil buffer
	glDisable(GL_STENCIL_TEST);

	//re-enable depth testing ( was enabled before)
	glEnable(GL_DEPTH_TEST);