fix: default to Vulkan on Windows

close #653
This commit is contained in:
edde746
2026-03-10 19:42:43 +01:00
parent 8b2c68f3ae
commit bfc7be2b80
+4 -1
View File
@@ -111,6 +111,9 @@ bool MpvPlayer::Initialize(HWND container, HWND flutter_window) {
// Configure mpv for embedded playback.
LogToFile("MpvPlayer::Initialize - setting mpv options");
// Use gpu-next + Vulkan to avoid D3D11 driver crashes (GH-653)
mpv_set_option_string(mpv_, "vo", "gpu-next");
mpv_set_option_string(mpv_, "gpu-api", "vulkan");
// hwdec is set from Flutter via setProperty based on user preference
mpv_set_option_string(mpv_, "keep-open", "yes");
mpv_set_option_string(mpv_, "idle", "yes");
@@ -546,7 +549,7 @@ void MpvPlayer::UpdateHDRMode(double sigPeak) {
// - target-colorspace-hint=yes
// - Windows HDR is enabled in Display Settings
// - Display supports HDR
// No explicit DXGI calls needed - mpv's gpu/d3d11 handles it
// No explicit DXGI calls needed - mpv's gpu-next/vulkan handles it
}
} // namespace mpv