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:
parent
5fffba8e59
commit
540332d71c
@ -37,8 +37,10 @@ namespace xna {
|
|||||||
Exception::Throw(Exception::FAILED_TO_APPLY);
|
Exception::Throw(Exception::FAILED_TO_APPLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!render_impl->_renderTargetView)
|
if (!render_impl->_renderTargetView)
|
||||||
Exception::Throw(Exception::INVALID_OPERATION);
|
{
|
||||||
|
Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
auto& context = m_device->impl->_context;
|
auto& context = m_device->impl->_context;
|
||||||
context->OMSetRenderTargets(1, render_impl->_renderTargetView.GetAddressOf(), nullptr);
|
context->OMSetRenderTargets(1, render_impl->_renderTargetView.GetAddressOf(), nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user