WIP: Dev 0.7 rewrite #15

Draft
tobid7 wants to merge 85 commits from dev-0.7-rewrite into stable
Showing only changes of commit 191bca26d5 - Show all commits
+12 -1
View File
@@ -105,7 +105,18 @@ void DesktopOS::ClearViewPort() {
}
}
void DesktopOS::SwapBuffers() { glfwSwapBuffers(impl->win); }
void DesktopOS::SwapBuffers() {
if (pDriver == Driver::DirectX9) {
#ifdef _WIN32
if (impl->dx9_device) {
impl->dx9_device->EndScene();
impl->dx9_device->Present(nullptr, nullptr, nullptr, nullptr);
}
#endif
} else {
glfwSwapBuffers(impl->win);
}
}
} // namespace PD
#endif