From 62a2fdcf88da8600e4c2b65e6454721fde8be03d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 15 Jan 2024 15:04:05 -0800 Subject: [PATCH] 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). --- src/renderer/shaders/cell.v.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/shaders/cell.v.glsl b/src/renderer/shaders/cell.v.glsl index 966c6e7e9..033e70593 100644 --- a/src/renderer/shaders/cell.v.glsl +++ b/src/renderer/shaders/cell.v.glsl @@ -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;