commit | fc74c375fd4c4ab18185c75286f96c01dafcb06d | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Apr 11 17:53:24 2012 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Apr 11 17:53:24 2012 +0000 |
tree | b2d9f45d459a377ab2b99721b0c47cd41d17feb3 | |
parent | e15eba22cba5a8cf611593b04081a677f7f98f86 [diff] |
Guard against null surface in Image::updateSurface. Review URL: https://codereview.appspot.com/5985051 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1026 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp index 36228f9..003776f 100644 --- a/src/libGLESv2/Texture.cpp +++ b/src/libGLESv2/Texture.cpp
@@ -264,7 +264,7 @@ { IDirect3DSurface9 *sourceSurface = getSurface(); - if (sourceSurface != destSurface) + if (sourceSurface && sourceSurface != destSurface) { RECT rect = transformPixelRect(xoffset, yoffset, width, height, mHeight);