- enable the depth buffer
- support vid_scalefactor
This commit is contained in:
parent
48d2d423f6
commit
d724b623d1
5 changed files with 65 additions and 4 deletions
|
|
@ -105,6 +105,7 @@ void PolyFrameBuffer::CheckCanvas()
|
|||
mCanvas.reset(new DCanvas(0, 0, true));
|
||||
mCanvas->Resize(GetWidth(), GetHeight(), false);
|
||||
|
||||
PolyTriangleDrawer::ResizeBuffers(mCanvas.get());
|
||||
PolyTriangleDrawer::SetViewport(GetDrawCommands(), 0, 0, mCanvas->GetWidth(), mCanvas->GetHeight(), mCanvas.get());
|
||||
}
|
||||
}
|
||||
|
|
@ -141,7 +142,7 @@ void PolyFrameBuffer::Update()
|
|||
DrawerThreads::WaitForWorkers();
|
||||
mFrameMemory.Clear();
|
||||
|
||||
if (mCanvas && GetClientWidth() == mCanvas->GetWidth() && GetClientHeight() == mCanvas->GetHeight())
|
||||
if (mCanvas)
|
||||
{
|
||||
I_PresentPolyImage(mCanvas->GetWidth(), mCanvas->GetHeight(), mCanvas->GetPixels());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue