Skip to content

Commit 7b43b50

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 20bd898 commit 7b43b50

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/mbgl/gl/uniform_buffer_gl.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ void UniformBufferGL::update(const void* data, std::size_t dataSize) {
106106
assert(isManagedAllocation ? dataSize <= managedBuffer.getContents().size() : dataSize <= size);
107107

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

src/mbgl/mtl/uniform_buffer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() {
2828
void UniformBuffer::update(const void* data, std::size_t dataSize) {
2929
assert(dataSize <= size);
3030
if (dataSize > size || dataSize > buffer.getSizeInBytes()) {
31-
Log::Error(
32-
Event::General,
33-
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize));
31+
Log::Error(Event::General,
32+
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " +
33+
std::to_string(dataSize));
3434
return;
3535
}
3636

src/mbgl/vulkan/uniform_buffer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() {
2828
void UniformBuffer::update(const void* data, std::size_t dataSize) {
2929
assert(dataSize <= size);
3030
if (dataSize > size || dataSize > buffer.getSizeInBytes()) {
31-
Log::Error(
32-
Event::General,
33-
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize));
31+
Log::Error(Event::General,
32+
"Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " +
33+
std::to_string(dataSize));
3434
return;
3535
}
3636

0 commit comments

Comments
 (0)