Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent 20bd898 commit 7b43b50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/mbgl/gl/uniform_buffer_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ void UniformBufferGL::update(const void* data, std::size_t dataSize) {
assert(isManagedAllocation ? dataSize <= managedBuffer.getContents().size() : dataSize <= size);

if (dataSize > size || (isManagedAllocation && dataSize > managedBuffer.getContents().size())) {
Log::Error(
Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize));
Log::Error(Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " +
std::to_string(dataSize));
return;
}

Expand Down
6 changes: 3 additions & 3 deletions src/mbgl/mtl/uniform_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() {
void UniformBuffer::update(const void* data, std::size_t dataSize) {
assert(dataSize <= size);
if (dataSize > size || dataSize > buffer.getSizeInBytes()) {
Log::Error(
Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize));
Log::Error(Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " +
std::to_string(dataSize));
return;
}

Expand Down
6 changes: 3 additions & 3 deletions src/mbgl/vulkan/uniform_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() {
void UniformBuffer::update(const void* data, std::size_t dataSize) {
assert(dataSize <= size);
if (dataSize > size || dataSize > buffer.getSizeInBytes()) {
Log::Error(
Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize));
Log::Error(Event::General,
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " +
std::to_string(dataSize));
return;
}

Expand Down

0 comments on commit 7b43b50

Please sign in to comment.