- Fixed another crash in the software renderer now with transparent sprites (Stronghold STR12), it's a bit hacky and now you get a white flash instead.

This commit is contained in:
drfrag 2019-09-17 18:48:31 +02:00
parent f25dadbaf2
commit b5bb5fa0bd

View file

@ -90,6 +90,9 @@ namespace swrenderer
dc_yl = (int)(sprtopscreen + spryscale * top + 0.5);
dc_yh = (int)(sprtopscreen + spryscale * (top + length) + 0.5) - 1;
if (dc_yh > viewport->RenderTarget->GetHeight() - 1)
dc_yh = viewport->RenderTarget->GetHeight() - 1;
if (sprflipvert)
{
swapvalues(dc_yl, dc_yh);