Fix canvas textures getting clipped by wrong scissor box
This commit is contained in:
parent
1a1adc5c29
commit
181eda0a83
3 changed files with 10 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue