Clear the dirty flag on copied images.

TRAC #18495 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@820 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent c9ba4ad2
......@@ -1713,7 +1713,7 @@ void Texture2D::copyImage(GLint level, GLenum format, GLint x, GLint y, GLsizei
convertToRenderTarget();
}
updateTexture();
mImageArray[level].dirty = false;
if (width != 0 && height != 0 && level < levelCount())
{
......@@ -2558,7 +2558,7 @@ void TextureCubeMap::copyImage(GLenum target, GLint level, GLenum format, GLint
convertToRenderTarget();
}
updateTexture();
mImageArray[faceindex][level].dirty = false;
ASSERT(width == height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment