Skip to content

Commit

Permalink
fix: alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTroble committed Aug 28, 2023
1 parent 402e143 commit b4fa158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TGEngine/private/graphics/GameGraphicsModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ main::Error GameGraphicsModule::init() {
std::fill(begin(modelMatrices), end(modelMatrices), glm::mat4(1));
this->alignment = (uint32_t)ceil(
(double)this->apiLayer->getAligned(tge::graphics::DataType::Uniform) /
(double)MIN_ALIGNMENT);
(double)2);
this->alignment = std::max(this->alignment, 2u);
PLOG_VERBOSE << "Alignment: " << this->alignment;
for (size_t i = 0; i < size; i++) {
Expand Down

0 comments on commit b4fa158

Please sign in to comment.