renderer/opengl: set texture size for constrained glyphs

This wasn't setting the texture size so the glyphs would show up blank
(zero texture size).
This commit is contained in:
Mitchell Hashimoto
2024-01-15 15:04:05 -08:00
parent 85fdcdccdb
commit 62a2fdcf88

View File

@ -208,6 +208,7 @@ void main() {
// device coordinates (0 to 1.0) by dividing by the size of the texture.
ivec2 text_size;
switch(mode) {
case MODE_FG_CONSTRAINED:
case MODE_FG:
text_size = textureSize(text, 0);
break;