Commit fc74c375 by bsalomon@google.com

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
parent e15eba22
......@@ -264,7 +264,7 @@ void Image::updateSurface(IDirect3DSurface9 *destSurface, GLint xoffset, GLint y
{
IDirect3DSurface9 *sourceSurface = getSurface();
if (sourceSurface != destSurface)
if (sourceSurface && sourceSurface != destSurface)
{
RECT rect = transformPixelRect(xoffset, yoffset, width, height, mHeight);
......
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