libobs-d3d11: Unbind framebuffer before Present
D3D debug layer would INFO spam about RTV0 unbind for FLIP chains.master
parent
0a94b3ce16
commit
2d0e312b30
|
@ -2362,6 +2362,9 @@ void device_present(gs_device_t *device)
|
||||||
{
|
{
|
||||||
gs_swap_chain *const curSwapChain = device->curSwapChain;
|
gs_swap_chain *const curSwapChain = device->curSwapChain;
|
||||||
if (curSwapChain) {
|
if (curSwapChain) {
|
||||||
|
device->context->OMSetRenderTargets(0, nullptr, nullptr);
|
||||||
|
device->curFramebufferInvalidate = true;
|
||||||
|
|
||||||
const UINT interval = curSwapChain->hWaitable ? 1 : 0;
|
const UINT interval = curSwapChain->hWaitable ? 1 : 0;
|
||||||
const HRESULT hr = curSwapChain->swap->Present(interval, 0);
|
const HRESULT hr = curSwapChain->swap->Present(interval, 0);
|
||||||
if (hr == DXGI_ERROR_DEVICE_REMOVED ||
|
if (hr == DXGI_ERROR_DEVICE_REMOVED ||
|
||||||
|
|
Loading…
Reference in New Issue