mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
build with ogles2 driver
This commit is contained in:
@@ -172,6 +172,7 @@ endif()
|
||||
find_package(Jthread REQUIRED)
|
||||
find_package(Sqlite3 REQUIRED)
|
||||
find_package(Json REQUIRED)
|
||||
find_package(OpenGLES2)
|
||||
|
||||
if(USE_FREETYPE)
|
||||
find_package(Freetype REQUIRED)
|
||||
@@ -386,6 +387,7 @@ if(BUILD_CLIENT)
|
||||
${SQLITE3_LIBRARY}
|
||||
${LUA_LIBRARY}
|
||||
${JSON_LIBRARY}
|
||||
${OPENGLES2_LIBRARIES}
|
||||
${PLATFORM_LIBS}
|
||||
${CLIENT_PLATFORM_LIBS}
|
||||
)
|
||||
|
@@ -1350,6 +1350,14 @@ int main(int argc, char *argv[])
|
||||
driverType = video::EDT_DIRECT3D9;
|
||||
else if(driverstring == "opengl")
|
||||
driverType = video::EDT_OPENGL;
|
||||
#ifdef _IRR_COMPILE_WITH_OGLES1_
|
||||
else if(driverstring == "ogles1")
|
||||
driverType = video::EDT_OGLES1;
|
||||
#endif
|
||||
#ifdef _IRR_COMPILE_WITH_OGLES2_
|
||||
else if(driverstring == "ogles2")
|
||||
driverType = video::EDT_OGLES2;
|
||||
#endif
|
||||
else
|
||||
{
|
||||
errorstream<<"WARNING: Invalid video_driver specified; defaulting "
|
||||
|
Reference in New Issue
Block a user