Commit 808074ce by Nicolas Capens

Don't blit to NULL format buffers.

This was causing crashes in Direct3D 9 applications using the "NULL" FOURCC used as a render target format for rendering to depth only. Bug 25351344 Change-Id: I69c2e0869f859489321c26dba56b7a80a2ed2f28 Reviewed-on: https://swiftshader-review.googlesource.com/5000Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent decbc133
...@@ -45,6 +45,11 @@ namespace sw ...@@ -45,6 +45,11 @@ namespace sw
void Blitter::blit(Surface *source, const SliceRect &sourceRect, Surface *dest, const SliceRect &destRect, const Blitter::Options& options) void Blitter::blit(Surface *source, const SliceRect &sourceRect, Surface *dest, const SliceRect &destRect, const Blitter::Options& options)
{ {
if(dest->getInternalFormat() == FORMAT_NULL)
{
return;
}
if(blitReactor(source, sourceRect, dest, destRect, options)) if(blitReactor(source, sourceRect, dest, destRect, options))
{ {
return; return;
......
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