environment mapping

Ok I discovered part of the problem. I was drawing first the env.map and then the scene! However I still get the cube faces (64x64) showing off in the lower 64x64 area of my 700x700 window. (The problem is not swapbuffers since I only
call it after drawing both the sphere and scene). Any idea of what stupid mistake I am making?

You might need to clear the Z-buffer.

Sure enough thats it. Thanks!