Compare commits
6 Commits
7e25a82e77
...
f1c6468614
Author | SHA1 | Date |
---|---|---|
Filippo Tarpini | f1c6468614 | |
Admiral H. Curtiss | 2c83a256ae | |
Jordan Woyak | c3f66e83e6 | |
OatmealDome | c344514ba2 | |
OatmealDome | 2633b84b98 | |
Filoppi | a2e43f1e9c |
|
@ -17,7 +17,7 @@
|
|||
#define BACKEND_NULLSOUND _trans("No Audio Output")
|
||||
#define BACKEND_ALSA "ALSA"
|
||||
#define BACKEND_CUBEB "Cubeb"
|
||||
#define BACKEND_OPENAL "OpenAL"
|
||||
#define BACKEND_OPENAL _trans("OpenAL (Deprecated)")
|
||||
#define BACKEND_PULSEAUDIO "Pulse"
|
||||
#define BACKEND_OPENSLES "OpenSLES"
|
||||
#define BACKEND_WASAPI _trans("WASAPI (Exclusive Mode)")
|
||||
|
|
|
@ -541,7 +541,7 @@ void IOWindow::ConnectWidgets()
|
|||
const auto lock = m_controller->GetStateLock();
|
||||
m_reference->State(0.0);
|
||||
});
|
||||
connect(this, &QWidget::destroyed, this, &IOWindow::TestOutputComplete);
|
||||
connect(this, &IOWindow::closeEvent, this, &IOWindow::TestOutputComplete);
|
||||
|
||||
connect(m_button_box, &QDialogButtonBox::clicked, this, &IOWindow::OnDialogButtonPressed);
|
||||
connect(m_devices_combo, &QComboBox::currentTextChanged, this, &IOWindow::OnDeviceChanged);
|
||||
|
|
|
@ -259,6 +259,10 @@ void VideoBackend::Shutdown()
|
|||
void VideoBackend::PrepareWindow(WindowSystemInfo& wsi)
|
||||
{
|
||||
#if defined(VK_USE_PLATFORM_METAL_EXT)
|
||||
// We only need to manually create the CAMetalLayer on macOS.
|
||||
if (wsi.type != WindowSystemType::MacOS)
|
||||
return;
|
||||
|
||||
// This is kinda messy, but it avoids having to write Objective C++ just to create a metal layer.
|
||||
id view = reinterpret_cast<id>(wsi.render_surface);
|
||||
Class clsCAMetalLayer = objc_getClass("CAMetalLayer");
|
||||
|
|
Loading…
Reference in New Issue