Files
moonlight-qt/app/utils.h
Cameron Gutman 7edbede95d Force Qt to use GLES if desktop GL is not available
Some platforms like the VisionFive 2 don't have working desktop GL,
so they must use GLES to be able to render at all. Qt doesn't try
to fall back if it fails to find a compatible EGL config, so we must
do so ourselves.
2025-12-21 21:13:22 -06:00

17 lines
389 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 supportsDesktopGLWithEGL();
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
QString getDrmCardOverride();
}