I have tested it with GLUT and I get the problem I describe in the first paragraph of my previous post. Tomorrow I will test it with SDL.