summaryrefslogtreecommitdiff
path: root/src/render/Texture.hpp
diff options
context:
space:
mode:
authorjmanc3 <jman12316@live.com>2026-01-27 15:21:53 -0600
committerGitHub <noreply@github.com>2026-01-27 21:21:53 +0000
commitc8b5023bb0610be4d1d2987ef05168834b2661ba (patch)
tree78eba71d4ad46d8049f04eeb179a8114264c6ed3 /src/render/Texture.hpp
parentbcb34275eaaa3b3eb2dd479b582a3b47bcc4b305 (diff)
opengl: allow texture filter to be changed (#13078)
* opengl: allow texture filter to be changed * format * correct filter * Moved from OpenGL.hpp to Texture.hpp * Shortened names
Diffstat (limited to 'src/render/Texture.hpp')
-rw-r--r--src/render/Texture.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Texture.hpp b/src/render/Texture.hpp
index 8ee2cab0..c2e9b2c3 100644
--- a/src/render/Texture.hpp
+++ b/src/render/Texture.hpp
@@ -49,6 +49,9 @@ class CTexture {
uint32_t m_drmFormat = 0; // for shm
bool m_isSynchronous = false;
+ GLenum magFilter = GL_LINEAR; // useNearestNeighbor overwrites these
+ GLenum minFilter = GL_LINEAR;
+
private:
enum eTextureParam : uint8_t {
TEXTURE_PAR_WRAP_S = 0,