mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Use a compile test for EGL support
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
SOURCES = main.cpp
|
||||
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += sdl2 egl
|
||||
@@ -0,0 +1,10 @@
|
||||
#include <SDL_egl.h>
|
||||
#include <SDL_opengles2.h>
|
||||
|
||||
#ifndef EGL_VERSION_1_5
|
||||
#error EGLRenderer requires EGL 1.5
|
||||
#endif
|
||||
|
||||
#ifndef GL_ES_VERSION_2_0
|
||||
#error EGLRenderer requires OpenGL ES 2.0
|
||||
#endif
|
||||
Reference in New Issue
Block a user