Skip to content

Commit

Permalink
Move the platform-dependent stuff in renderingengine.cpp to irrlicht (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Jun 11, 2023
1 parent 553dc02 commit c91182e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 320 deletions.
6 changes: 0 additions & 6 deletions src/CMakeLists.txt
Expand Up @@ -285,10 +285,6 @@ if(WIN32)
endif()
else()
# Unix probably
if(BUILD_CLIENT AND NOT (HAIKU OR APPLE OR ANDROID))
find_package(X11 REQUIRED)
endif()

set(PLATFORM_LIBS ${PLATFORM_LIBS} ${CMAKE_DL_LIBS})
if(APPLE)
set(PLATFORM_LIBS "-framework CoreFoundation" ${PLATFORM_LIBS})
Expand Down Expand Up @@ -518,7 +514,6 @@ if(BUILD_CLIENT)
include_directories(SYSTEM
${FREETYPE_INCLUDE_DIRS}
${SOUND_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
)
endif()

Expand All @@ -545,7 +540,6 @@ if(BUILD_CLIENT)
${ZLIB_LIBRARIES}
IrrlichtMt::IrrlichtMt
${ZSTD_LIBRARY}
${X11_LIBRARIES}
${SOUND_LIBRARIES}
${SQLITE3_LIBRARY}
${LUA_LIBRARY}
Expand Down
2 changes: 1 addition & 1 deletion src/client/clientlauncher.cpp
Expand Up @@ -118,7 +118,7 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args)
return false;
}

m_rendering_engine->setupTopLevelWindow(PROJECT_NAME_C);
m_rendering_engine->setupTopLevelWindow();

/*
This changes the minimum allowed number of vertices in a VBO.
Expand Down

0 comments on commit c91182e

Please sign in to comment.