samphippen
05-30-2012, 04:02 PM
Hi.
Code here: http://sprunge.us/aGii
expected behaviour: texture attached to fbo is filled with red, red square then renders in bottom left 50x50 pixel square. rest of screen remains black
actual behavior: white square renders in bottom left 50x50 pixel square, rest of screen is red.
At the moment I'm just trying to get the frame buffer to render anything, although my eventual goal is to render some triangles into it.
Any help would be appreciated :)
Code here: http://sprunge.us/aGii
expected behaviour: texture attached to fbo is filled with red, red square then renders in bottom left 50x50 pixel square. rest of screen remains black
actual behavior: white square renders in bottom left 50x50 pixel square, rest of screen is red.
At the moment I'm just trying to get the frame buffer to render anything, although my eventual goal is to render some triangles into it.
Any help would be appreciated :)