Use grid texture as sampler instead of as image texture.
Fix grid texture sampling and use sampler for the flag texture.