Skip to content

Commit

Permalink
fix gltf buffers, again
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed Jan 27, 2024
1 parent 20a8e61 commit 5335032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <deque>
#include <future>

static constexpr bool CATCH_EXCEPTIONS = true;
static constexpr bool CATCH_EXCEPTIONS = false;

struct WorkerThread {
MultiThreadManagerImpl &manager;
Expand Down
2 changes: 1 addition & 1 deletion src/gltf/gltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void GLTF::FinishAndSave(BinWritterRef wr, const std::string & docPath)
{
a.buffer = 0;
a.byteOffset = curOffset;
curOffset += a.byteLength;
curOffset += a.byteLength + GetPadding(a.byteLength, 16);
bufferViews.at(a.index) = std::move(a);
}

Expand Down

0 comments on commit 5335032

Please sign in to comment.