New image surfaces are not dirty (nothing to copy over). Lock marks images as dirty.

TRAC #18714 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@833 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 0c67f3cd
...@@ -109,6 +109,7 @@ void Image::createSurface() ...@@ -109,6 +109,7 @@ void Image::createSurface()
} }
mSurface = newSurface; mSurface = newSurface;
mDirty = false;
} }
HRESULT Image::lock(D3DLOCKED_RECT *lockedRect, const RECT *rect) HRESULT Image::lock(D3DLOCKED_RECT *lockedRect, const RECT *rect)
...@@ -1165,7 +1166,6 @@ void Texture::setImage(GLint unpackAlignment, const void *pixels, Image *image) ...@@ -1165,7 +1166,6 @@ void Texture::setImage(GLint unpackAlignment, const void *pixels, Image *image)
image->unlock(); image->unlock();
} }
image->markDirty();
mDirtyImages = true; mDirtyImages = true;
} }
} }
...@@ -1185,7 +1185,6 @@ void Texture::setCompressedImage(GLsizei imageSize, const void *pixels, Image *i ...@@ -1185,7 +1185,6 @@ void Texture::setCompressedImage(GLsizei imageSize, const void *pixels, Image *i
image->unlock(); image->unlock();
} }
image->markDirty();
mDirtyImages = true; mDirtyImages = true;
} }
} }
...@@ -1221,7 +1220,6 @@ bool Texture::subImage(GLint xoffset, GLint yoffset, GLsizei width, GLsizei heig ...@@ -1221,7 +1220,6 @@ bool Texture::subImage(GLint xoffset, GLint yoffset, GLsizei width, GLsizei heig
image->unlock(); image->unlock();
} }
image->markDirty();
mDirtyImages = true; mDirtyImages = true;
} }
...@@ -1261,7 +1259,6 @@ bool Texture::subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GL ...@@ -1261,7 +1259,6 @@ bool Texture::subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GL
image->unlock(); image->unlock();
} }
image->markDirty();
mDirtyImages = true; mDirtyImages = true;
} }
......
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