Use a compile test for EGL support

This commit is contained in:
Cameron Gutman
2020-05-15 16:46:03 -07:00
parent a1b74e1220
commit c4039a929c
4 changed files with 16 additions and 5 deletions

10
config.tests/EGL/main.cpp Normal file
View 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