| 1802 | } |
| 1803 | |
| 1804 | void DXRenderWindow::Present() |
| 1805 | { |
| 1806 | HRESULT hr = mDXSwapChain->Present((mWindow->mFlags & BFWINDOW_VSYNC) ? 1 : 0, 0); |
| 1807 | |
| 1808 | if ((hr == DXGI_ERROR_DEVICE_REMOVED) || (hr == DXGI_ERROR_DEVICE_RESET)) |
| 1809 | ((DXRenderDevice*)mRenderDevice)->mNeedsReinitNative = true; |
| 1810 | } |
| 1811 | |
| 1812 | void DXRenderWindow::CopyBitsTo(uint32* dest, int width, int height) |
| 1813 | { |