Skip to content

Commit

Permalink
Fix non vulkan compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bycob committed Mar 12, 2021
1 parent 644c3b0 commit f72ee34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions projects/vkworld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if (${WORLD_BUILD_VULKAN_MODULES})
rclib_include_directory(shaderlib)

add_subdirectory(shaders/)

# TODO add vkworld to install
else()
message(STATUS "Cannot build Vulkan modules : Missign dependencies (Vulkan)")
endif()
Expand Down
2 changes: 2 additions & 0 deletions tests/mem_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ void generate_test_world(int argc, char **argv);
int main(int argc, char **argv) { generate_test_world(argc, argv); }

void generate_test_world(int argc, char **argv) {
#ifdef USE_VKWORLD
VkWorld::loadLibrary();
#endif

int itcount = 5;
bool land = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ FlatWorld *createWorld() {
ground.addWorker<CustomWorldRMModifier>(1);

auto &chunkSystem = world->addPrimaryNode<GridChunkSystem>({0, 0, 0});
chunkSystem.addDecorator<ForestLayer>(world);
chunkSystem.addDecorator<ForestLayer>();

return world;
}
Expand Down

0 comments on commit f72ee34

Please sign in to comment.