We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e9eb2 commit f0b4716Copy full SHA for f0b4716
src/nbl/ext/TextRendering/TextRendering.cpp
@@ -31,7 +31,7 @@ void TextRenderer::generateShapeMSDF(
31
32
size_t& offset = *bufferOffset;
33
size_t bufferSize = glyphW * glyphH * sizeof(int8_t) * 4;
34
- assert(bufferToFill->getSize() >= bufferSize + bufferOffset);
+ assert(bufferToFill->getSize() >= bufferSize + offset);
35
36
int8_t* data = reinterpret_cast<int8_t*>(bufferToFill->getPointer());
37
0 commit comments