Fix canvas textures getting clipped by wrong scissor box

This commit is contained in:
Magnus Norddahl 2022-10-28 22:24:21 +02:00 committed by Rachael Alexanderson
commit 181eda0a83
3 changed files with 10 additions and 2 deletions

View file

@ -360,6 +360,7 @@ sector_t* RenderView(player_t* player)
{
screen->RenderTextureView(canvas->Tex, [=](IntRect& bounds)
{
screen->SetViewportRects(&bounds);
Draw2D(&canvas->Drawer, *screen->RenderState(), 0, 0, canvas->Tex->GetWidth(), canvas->Tex->GetHeight());
canvas->Drawer.Clear();
});