mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 21:07:56 +00:00
Merge pull request #1309 from mitchellh/opengl-constrain
renderer/opengl: set texture size for constrained glyphs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user