summaryrefslogtreecommitdiff
path: root/ui/font.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-07 14:21:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-07 14:21:21 +0000
commitfb16b42096b45f02a9b02bee38d5d3ead6d430b0 (patch)
tree11f01ae37e5423c0ee2d5087bc72342db3a6832c /ui/font.cpp
parentFix naming violations in Mesh (diff)
downloadilt-fb16b42096b45f02a9b02bee38d5d3ead6d430b0.tar.bz2
ilt-fb16b42096b45f02a9b02bee38d5d3ead6d430b0.tar.xz
ilt-fb16b42096b45f02a9b02bee38d5d3ead6d430b0.zip
Replace gl_traits glTexParameter with glTexture::parameter DSA wrapperHEADmain
Diffstat (limited to 'ui/font.cpp')
-rw-r--r--ui/font.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/font.cpp b/ui/font.cpp
index d8e1257..b028c52 100644
--- a/ui/font.cpp
+++ b/ui/font.cpp
@@ -4,7 +4,6 @@
#include <format>
#include <ft2build.h>
#include FT_FREETYPE_H
-#include "gl_traits.h"
#include <glRef.h>
#include <maths.h>
#include <optional>
@@ -124,10 +123,10 @@ Font::getTextureWithSpace(unsigned int adv) const
texture.texture.bind();
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, static_cast<GLsizei>(size.x), static_cast<GLsizei>(size.y), 0, GL_RED,
GL_UNSIGNED_BYTE, nullptr);
- glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
- glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
- glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
- glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ texture.texture.parameter(GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ texture.texture.parameter(GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+ texture.texture.parameter(GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ texture.texture.parameter(GL_TEXTURE_MAG_FILTER, GL_LINEAR);
return fontTextures.size() - 1;
}