Help with underwater texture...

I have an OpenGL application that I modified from an example that is not using GLUT, and I have a glut example that makes something appear that it is underwater using textures that I got from

Currently, I have a textured object, and I would like to make it look like it is underwater using the same method, but when I try to integrate the glut routines, my application explodes into space with an access violation as soon as it hits the call to glutDisplayFunc().

I am trying to do something that I think should be easy, but I would rather skip GLUT and do it a simpler way, rather than hand over my application to glutMainLoop() in the end.

sounds to me that you are not using glut display func correctly. could you post some code for us to see