diff options
| author | Ray <[email protected]> | 2022-06-16 13:07:38 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-06-16 13:07:38 +0200 |
| commit | 309ad3e08b8ec55d4690b628a2987d568d0f3cb1 (patch) | |
| tree | e37287834fe6877a039d94e0a570c87ac67b90ed /src | |
| parent | 7ed3d870fef3afeb11958d0129b7df3d42ed1daa (diff) | |
| download | raylib-309ad3e08b8ec55d4690b628a2987d568d0f3cb1.tar.gz raylib-309ad3e08b8ec55d4690b628a2987d568d0f3cb1.zip | |
REVIEWED: `rlTextureParameters()`, reset anisotropy level
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |
