summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-16 13:07:38 +0200
committerRay <[email protected]>2022-06-16 13:07:38 +0200
commit309ad3e08b8ec55d4690b628a2987d568d0f3cb1 (patch)
treee37287834fe6877a039d94e0a570c87ac67b90ed /src
parent7ed3d870fef3afeb11958d0129b7df3d42ed1daa (diff)
downloadraylib-309ad3e08b8ec55d4690b628a2987d568d0f3cb1.tar.gz
raylib-309ad3e08b8ec55d4690b628a2987d568d0f3cb1.zip
REVIEWED: `rlTextureParameters()`, reset anisotropy level
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index bf321357..8ff0d90b 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1516,6 +1516,11 @@ void rlDisableTextureCubemap(void)
void rlTextureParameters(unsigned int id, int param, int value)
{
glBindTexture(GL_TEXTURE_2D, id);
+
+#if !defined(GRAPHICS_API_OPENGL_11)
+ // Reset anisotropy filter, in case it was set
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, 1.0f);
+#endif
switch (param)
{