1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Correção em RenderTarget2D::Apply

This commit is contained in:
Danilo 2024-08-02 17:17:33 -03:00
parent 5fffba8e59
commit 540332d71c

View File

@ -37,8 +37,10 @@ namespace xna {
Exception::Throw(Exception::FAILED_TO_APPLY);
}
if(!render_impl->_renderTargetView)
Exception::Throw(Exception::INVALID_OPERATION);
if (!render_impl->_renderTargetView)
{
Initialize();
}
auto& context = m_device->impl->_context;
context->OMSetRenderTargets(1, render_impl->_renderTargetView.GetAddressOf(), nullptr);