Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[WIN32] fixed: use backbuffer only if we got it.

  • Loading branch information...
commit d6a97daa48eecf73cdfe7b8e9c06618c00bde7b1 1 parent 961e53c
wsoltys authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/rendering/dx/RenderSystemDX.cpp
View
4 xbmc/rendering/dx/RenderSystemDX.cpp
@@ -704,7 +704,9 @@ bool CRenderSystemDX::BeginRender()
}
IDirect3DSurface9 *pBackBuffer;
- m_pD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pBackBuffer);
+ if(m_pD3DDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pBackBuffer) != D3D_OK)
+ return false;
+
m_pD3DDevice->SetRenderTarget(0, pBackBuffer);
pBackBuffer->Release();
Please sign in to comment.
Something went wrong with that request. Please try again.