I am using OpenGL with GLSL shaders to do some image processing. I'm basically using framebuffers with an orthographic projection to render my image multiple times (each with different settings for the fragment shader).
I then have 2 framebuffers with textures attached to them that I render back and forth between (eg. tex1 is attached to fb1, tex2 is attached to fb2. first pass renders the input texture into fb1, second pass renders tex1 into fb2, 3rd pass renders tex2 into fb1... back and forth) until the final pass renders from whatever texture into an output framebuffer.
All of this is done using orthographic projections so none of the image should be missing. This all works fine until the window is resized. If I decrease the height of the window by half the image ends up only being drawn in the top half of the window that's left (this is for one pass, 2 passes and it will end up only in the top 1/4 of the window). Can anyone understand why this is happening?
The second pic is after resizing the window to 3/4 its original height
http://i567.photobucket.com/albums/ss112/davidc538/rtip1.png
http://i567.photobucket.com/albums/ss112/davidc538/rtip2.png