mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- 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:
parent
f25dadbaf2
commit
b5bb5fa0bd
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue