diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-26 19:07:37 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-26 19:07:37 +0100 |
commit | ce6659f5581a7d1f6b0f7b42e29c831e93315be8 (patch) | |
tree | 3dbe1b6a0f8e9f5246cedc0e08df1b4d2419daa5 /gfx | |
parent | Add helper to test if a uniform was found (diff) | |
download | ilt-ce6659f5581a7d1f6b0f7b42e29c831e93315be8.tar.bz2 ilt-ce6659f5581a7d1f6b0f7b42e29c831e93315be8.tar.xz ilt-ce6659f5581a7d1f6b0f7b42e29c831e93315be8.zip |
Set stencil texture min/mag filters
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/gl/shadowStenciller.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/gl/shadowStenciller.cpp b/gfx/gl/shadowStenciller.cpp index ac63b4e..0c34da5 100644 --- a/gfx/gl/shadowStenciller.cpp +++ b/gfx/gl/shadowStenciller.cpp @@ -28,6 +28,8 @@ ShadowStenciller::createStencilTexture(GLsizei width, GLsizei height) glBindTexture(GL_TEXTURE_2D, stencil); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); + glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); |