Window resize issue with texture

Two textures namely texture_BackGround and texture_ForeGround are drawn as color attachments to a frame buffer (1024x1024 size), where texture_BackGround is updated only once, texture_ForeGround gets dynamically updated. While resizing the window, texture_BackGround is getting reshaped properly where as texture_ForeGround reshaping is getting affected. If the window is reshaped with more than 1024x1024 size, texture_ForeGround is drawn bigger in size. If the window is reshaped with less than 1024x1024 size texture_ForeGround is drawn on the lower left quadrant. What could be the problem? Kindly respond to the query.