mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Use a compile test for EGL support
This commit is contained in:
parent
a1b74e1220
commit
c4039a929c
@ -90,10 +90,6 @@ unix:!macx {
|
|||||||
CONFIG += libva
|
CONFIG += libva
|
||||||
}
|
}
|
||||||
|
|
||||||
packagesExist(egl) {
|
|
||||||
CONFIG += egl
|
|
||||||
}
|
|
||||||
|
|
||||||
packagesExist(vdpau) {
|
packagesExist(vdpau) {
|
||||||
CONFIG += libvdpau
|
CONFIG += libvdpau
|
||||||
}
|
}
|
||||||
@ -268,7 +264,7 @@ libdrm {
|
|||||||
SOURCES += streaming/video/ffmpeg-renderers/drm.cpp
|
SOURCES += streaming/video/ffmpeg-renderers/drm.cpp
|
||||||
HEADERS += streaming/video/ffmpeg-renderers/drm.h
|
HEADERS += streaming/video/ffmpeg-renderers/drm.h
|
||||||
}
|
}
|
||||||
egl {
|
config_EGL {
|
||||||
message(EGL renderer selected)
|
message(EGL renderer selected)
|
||||||
|
|
||||||
DEFINES += HAVE_EGL
|
DEFINES += HAVE_EGL
|
||||||
|
4
config.tests/EGL/EGL.pro
Normal file
4
config.tests/EGL/EGL.pro
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
SOURCES = main.cpp
|
||||||
|
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
|
PKGCONFIG += sdl2 egl
|
10
config.tests/EGL/main.cpp
Normal file
10
config.tests/EGL/main.cpp
Normal file
@ -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
|
@ -22,3 +22,4 @@ CONFIG += debug_and_release
|
|||||||
# Run our compile tests
|
# Run our compile tests
|
||||||
load(configure)
|
load(configure)
|
||||||
qtCompileTest(SL)
|
qtCompileTest(SL)
|
||||||
|
qtCompileTest(EGL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user