1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use Irrlicht functions to query npot texture support

This commit is contained in:
sfan5 2021-04-21 18:52:14 +02:00
parent de85bc9227
commit 08f1a7fbed
4 changed files with 10 additions and 48 deletions

View file

@ -102,11 +102,11 @@ endif()
option(ENABLE_GLES "Use OpenGL ES instead of OpenGL" FALSE)
mark_as_advanced(ENABLE_GLES)
if(BUILD_CLIENT)
if(ENABLE_GLES)
find_package(OpenGLES2 REQUIRED)
else()
# transitive dependency from Irrlicht (see longer explanation below)
if(NOT WIN32)
# transitive dependency from Irrlicht (see longer explanation below)
if(NOT WIN32)
if(ENABLE_GLES)
find_package(OpenGLES2 REQUIRED)
else()
set(OPENGL_GL_PREFERENCE "LEGACY" CACHE STRING
"See CMake Policy CMP0072 for reference. GLVND is broken on some nvidia setups")
set(OpenGL_GL_PREFERENCE ${OPENGL_GL_PREFERENCE})
@ -523,10 +523,6 @@ include_directories(
${PROJECT_SOURCE_DIR}/script
)
if(ENABLE_GLES)
include_directories(${OPENGLES2_INCLUDE_DIR} ${EGL_INCLUDE_DIR})
endif()
if(USE_GETTEXT)
include_directories(${GETTEXT_INCLUDE_DIR})
endif()