fixed glich. It was due to not explicitly setting ALL colour channels in fragment shader.