mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
libretro D3D11: Attempt at fixing a build error
This commit is contained in:
1 parent
b9b7342ffd
commit
5959481a3e
2 files changed
+5
-2
No files matched your search
@@ -438,7 +438,10 @@ void D3D11DrawContext::Present(PresentMode presentMode, int vblanks) {
|
||||
if (presentMode != PresentMode::FIFO) {
|
||||
interval = 0;
|
||||
}
|
||||
swapChain_->Present(interval, 0);
|
||||
// Safety for libretro
|
||||
if (swapChain_) {
|
||||
swapChain_->Present(interval, 0);
|
||||
}
|
||||
curRenderTargetView_ = nullptr;
|
||||
curDepthStencilView_ = nullptr;
|
||||
frameCount_++;
|
||||
|
||||
Reference in new issue
Block a user