mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
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.
17 lines
371 B
C++
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();
|
|
}
|