reverted opengles removal.

This commit is contained in:
Ozkan Sezer
2022-11-23 18:50:02 +03:00
parent 7767e0c5f9
commit 34231f5ba0
37 changed files with 1877 additions and 18 deletions

View File

@@ -700,6 +700,15 @@ endmacro()
# - nada
macro(CheckOpenGLES)
if(SDL_OPENGLES)
check_c_source_compiles("
#include <GLES/gl.h>
#include <GLES/glext.h>
int main (int argc, char** argv) { return 0; }" HAVE_OPENGLES_V1)
if(HAVE_OPENGLES_V1)
set(HAVE_OPENGLES TRUE)
set(SDL_VIDEO_OPENGL_ES 1)
set(SDL_VIDEO_RENDER_OGL_ES 1)
endif()
check_c_source_compiles("
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>