mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
repair implicit cast of ints into unsigned colorBuffer
This commit is contained in:
parent
118b3133c5
commit
bff6707715
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ int TextRenderer::draw(int x, int y, const char* str) {
|
|||
leftBottom.x, rightTop.y, ls, tt, };
|
||||
|
||||
const int NUM_COLOR_SCALARS_PER_GLYPH = 4;
|
||||
unsigned int colorBuffer[NUM_COLOR_SCALARS_PER_GLYPH] = { compactColor, compactColor, compactColor, compactColor };
|
||||
int colorBuffer[NUM_COLOR_SCALARS_PER_GLYPH] = { compactColor, compactColor, compactColor, compactColor };
|
||||
|
||||
gpu::Buffer::Size offset = sizeof(vertexBuffer) * _numGlyphsBatched;
|
||||
gpu::Buffer::Size colorOffset = sizeof(colorBuffer) * _numGlyphsBatched;
|
||||
|
|
Loading…
Reference in a new issue