Here is the problem: I'm rendering a red triangle in an offscreen Frame Buffer Object. I have a texture of that Buffer, and i'm applying this texture to a Simple rectangle(at runtime).
This is exactly what i wanted. the problem is that when i strech my window the texture gets a little weird:
Just for curiosity i tried to render the rectangle without the texture.
And then I stretched the window once again:
I believe this is happening because in my default FBO I am setting glViewport to glViewport(0,0,m_Width,m_Height); (m_Width and m_Height are the dimensions of the Window)