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