mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-29 08:17:59 +03:00
Fixed drawing of fullscreen sprites in title
This commit is contained in:
parent
e4b286e41d
commit
188b69e5aa
1 changed files with 5 additions and 4 deletions
|
@ -1099,19 +1099,20 @@ namespace TEN::Renderer
|
|||
{
|
||||
_context->ClearDepthStencilView(_backBuffer.DepthStencilView.Get(), D3D11_CLEAR_STENCIL | D3D11_CLEAR_DEPTH, 1.0f, 0);
|
||||
_context->ClearRenderTargetView(_backBuffer.RenderTargetView.Get(), Colors::Black);
|
||||
|
||||
RenderInventoryScene(&_backBuffer, &_dumpScreenRenderTarget);
|
||||
|
||||
_swapChain->Present(0, 0);
|
||||
}
|
||||
|
||||
void Renderer::RenderTitle()
|
||||
{
|
||||
RenderScene(&_dumpScreenRenderTarget, false, _gameCamera);
|
||||
|
||||
_context->ClearDepthStencilView(_backBuffer.DepthStencilView.Get(), D3D11_CLEAR_STENCIL | D3D11_CLEAR_DEPTH, 1.0f, 0);
|
||||
_context->ClearRenderTargetView(_backBuffer.RenderTargetView.Get(), Colors::Black);
|
||||
|
||||
RenderScene(&_backBuffer, false, _gameCamera);
|
||||
_context->ClearDepthStencilView(_backBuffer.DepthStencilView.Get(), D3D11_CLEAR_STENCIL | D3D11_CLEAR_DEPTH, 1.0f, 0);
|
||||
|
||||
RenderInventoryScene(&_backBuffer, nullptr);
|
||||
RenderInventoryScene(&_backBuffer, &_dumpScreenRenderTarget);
|
||||
DrawAllStrings();
|
||||
|
||||
_swapChain->Present(0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue