mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
parent
2a3fd05651
commit
6f86b6fdbe
@ -42,12 +42,12 @@ D3D11Context::~D3D11Context() {
|
||||
}
|
||||
|
||||
void D3D11Context::SwapBuffers() {
|
||||
swapChain_->Present(0, 0);
|
||||
swapChain_->Present(swapInterval_, 0);
|
||||
draw_->HandleEvent(Draw::Event::PRESENTED, 0, 0, nullptr, nullptr);
|
||||
}
|
||||
|
||||
void D3D11Context::SwapInterval(int interval) {
|
||||
// Dummy
|
||||
swapInterval_ = interval;
|
||||
}
|
||||
|
||||
HRESULT D3D11Context::CreateTheDevice(IDXGIAdapter *adapter) {
|
||||
|
@ -67,4 +67,5 @@ private:
|
||||
HMODULE hD3D11;
|
||||
int width;
|
||||
int height;
|
||||
int swapInterval_ = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user