Skip to content

Instantly share code, notes, and snippets.

@x2048
Created April 7, 2022 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x2048/12018ea6959e5c3451997951a5d77185 to your computer and use it in GitHub Desktop.
Save x2048/12018ea6959e5c3451997951a5d77185 to your computer and use it in GitHub Desktop.
Remove commented code in clientmap.cpp
diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp
index 8a059c922..99ff0aefb 100644
--- a/src/client/clientmap.cpp
+++ b/src/client/clientmap.cpp
@@ -879,15 +879,6 @@ void ClientMap::updateDrawListShadow(v3f shadow_light_pos, v3f shadow_light_dir,
}
m_drawlist_shadow.clear();
- // We need to append the blocks from the camera POV because sometimes
- // they are not inside the light frustum and it creates glitches.
- // FIXME: This could be removed if we figure out why they are missing
- // from the light frustum.
- // for (auto &i : m_drawlist) {
- // i.second->refGrab();
- // m_drawlist_shadow[i.first] = i.second;
- // }
-
// Number of blocks currently loaded by the client
u32 blocks_loaded = 0;
// Number of blocks with mesh in rendering range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment