Files
moonlight-qt/app/utils.h
Cameron Gutman 3425fec33d Use EGL+GLES workaround for Nvidia X11
We can avoid disabling EGL entirely by forcing Qt to use GLES,
which is not impacted by the black window issue. This lets us
simplify back to EGL everywhere.
2025-12-14 16:21:32 -06:00

16 lines
352 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 isRunningNvidiaProprietaryDriverX11();
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
QString getDrmCardOverride();
}