fix bug with wrong glpopattrib

resolves bug and enables use of only 2 FBO with color attachments for
shaders