mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-09 19:36:33 +00:00
REVIEWED: rlTextureParameters()
, reset anisotropy level
This commit is contained in:
@@ -1517,6 +1517,11 @@ void rlTextureParameters(unsigned int id, int param, int value)
|
|||||||
{
|
{
|
||||||
glBindTexture(GL_TEXTURE_2D, id);
|
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)
|
switch (param)
|
||||||
{
|
{
|
||||||
case RL_TEXTURE_WRAP_S:
|
case RL_TEXTURE_WRAP_S:
|
||||||
|
Reference in New Issue
Block a user