forked from Mirrorlandia_minetest/irrlicht
Error out early on unsupported SDL2+GLES1 combo
This commit is contained in:
parent
f641500d01
commit
ba77d01c91
@ -204,6 +204,9 @@ if(ENABLE_OPENGL3)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_GLES1)
|
if(ENABLE_GLES1)
|
||||||
|
if (USE_SDL2)
|
||||||
|
message(SEND_ERROR "OpenGL ES 1 is not supported with SDL2")
|
||||||
|
endif()
|
||||||
add_definitions(-D_IRR_COMPILE_WITH_OGLES1_)
|
add_definitions(-D_IRR_COMPILE_WITH_OGLES1_)
|
||||||
if(DEVICE MATCHES "^(WINDOWS|X11|ANDROID)$")
|
if(DEVICE MATCHES "^(WINDOWS|X11|ANDROID)$")
|
||||||
add_definitions(-D_IRR_COMPILE_WITH_EGL_MANAGER_ -D_IRR_OGLES1_USE_EXTPOINTER_)
|
add_definitions(-D_IRR_COMPILE_WITH_EGL_MANAGER_ -D_IRR_OGLES1_USE_EXTPOINTER_)
|
||||||
|
Loading…
Reference in New Issue
Block a user