mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 18:26:13 +03: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.
|
// device coordinates (0 to 1.0) by dividing by the size of the texture.
|
||||||
ivec2 text_size;
|
ivec2 text_size;
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
|
case MODE_FG_CONSTRAINED:
|
||||||
case MODE_FG:
|
case MODE_FG:
|
||||||
text_size = textureSize(text, 0);
|
text_size = textureSize(text, 0);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user