summaryrefslogtreecommitdiff
path: root/src/first_app.cpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-27 21:40:20 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-27 21:40:20 -0400
commit269263d88629c48027d71275dd778f7b01a569f1 (patch)
tree147f63e68d3941751b7bc4778a4bb745b8d88eba /src/first_app.cpp
parentprocedural chunk loading (diff)
downloadminecraftvulkan-269263d88629c48027d71275dd778f7b01a569f1.tar.gz
minecraftvulkan-269263d88629c48027d71275dd778f7b01a569f1.tar.bz2
minecraftvulkan-269263d88629c48027d71275dd778f7b01a569f1.zip
destroy buffers on fence
Diffstat (limited to 'src/first_app.cpp')
-rwxr-xr-xsrc/first_app.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/first_app.cpp b/src/first_app.cpp
index 43047f7..63a960d 100755
--- a/src/first_app.cpp
+++ b/src/first_app.cpp
@@ -73,8 +73,8 @@ void FirstApp::reloadLoadedChunks(xe::GameObject& viewer) {
int gridZ = static_cast<int>(floor(gameObject.transform.translation.z / 16.f));
int newGridX = minX + x;
int newGridZ = minZ + z;
- if(gridX < minX || gridZ < minZ || gridX > maxX || gridZ > maxZ)
- Chunk::deleteChunk(gridX, gridZ);
+ // if(gridX < minX || gridZ < minZ || gridX > maxX || gridZ > maxZ)
+ // Chunk::deleteChunk(gridX, gridZ);
Chunk* chunk = Chunk::getChunk(newGridX, newGridZ);
if(chunk == nullptr) {
chunk = Chunk::newChunk(newGridX, newGridZ, 12345);