Files
moonlight-qt/app/utils.h
Cameron Gutman 9c6d2bab19 Use EGL_VENDOR instead of NV-CONTROL for Nvidia detection
The latter will still match on a hybrid system when the iGPU's EGL
implementation is in use. This scenario works properly with EGL
rendering in Qt and SDL, so we want to allow that.
2025-12-06 11:20:03 -06:00

17 lines
371 B
C++

#pragma once
#include <QString>
#define THROW_BAD_ALLOC_IF_NULL(x) \
if ((x) == nullptr) throw std::bad_alloc()
namespace WMUtils {
bool isRunningX11();
bool isRunningNvidiaProprietaryDriver();
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
bool isEGLSafe();
QString getDrmCardOverride();
}