- fixed: translucency detection in multipatch textures did not work.

- fixed: The flat drawer never checked if a texture had translucent parts.
This commit is contained in:
Christoph Oelckers 2016-09-08 12:18:09 +02:00
commit b9ca3c85f8
3 changed files with 22 additions and 4 deletions

View file

@ -628,8 +628,9 @@ int FMultiPatchTexture::CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rota
{
ret = Parts[i].Texture->CopyTrueColorPixels(bmp, x+Parts[i].OriginX, y+Parts[i].OriginY, Parts[i].Rotate, &info);
}
if (ret > retv) retv = ret;
// treat -1 (i.e. unknown) as absolute. We have no idea if this may have overwritten previous info so a real check needs to be done.
if (ret == -1) retv = ret;
else if (retv != -1 && ret > retv) retv = ret;
}
// Restore previous clipping rectangle.
bmp->SetClipRect(saved_cr);