From c8b5023bb0610be4d1d2987ef05168834b2661ba Mon Sep 17 00:00:00 2001 From: jmanc3 Date: Tue, 27 Jan 2026 15:21:53 -0600 Subject: 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 --- src/render/Texture.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/Texture.hpp') 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, -- cgit v1.2.3