Present DX9 Frames ...

This commit is contained in:
2026-03-21 16:47:16 +01:00
parent d8efcd41b1
commit 794e06b890
+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 } // namespace PD
#endif #endif