Don't access the pattern GetPixel function pointer if it hasn't been set

svn path=/trunk/; revision=42615
This commit is contained in:
Gregor Schneider 2009-08-11 13:39:40 +00:00
parent f0dc2c14f3
commit 85fc2afbaa

View file

@ -144,7 +144,7 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, SURFOBJ *Ma
}
}
if (CanDraw)
if (UsesPattern && CanDraw)
{
if (PatternSurface)
{