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

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