summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-12-03 12:00:05 +0100
committerRay <[email protected]>2018-12-03 12:00:05 +0100
commit8b75a1a990baa6f4cbd0ad0b5dfc06ef6448ac89 (patch)
treec87de9dc1d3422e363d4935dd90ec356b5336bc8 /src/textures.c
parentf552d4354795d74bb448758d9cac9a25bbf1557e (diff)
downloadraylib-8b75a1a990baa6f4cbd0ad0b5dfc06ef6448ac89.tar.gz
raylib-8b75a1a990baa6f4cbd0ad0b5dfc06ef6448ac89.zip
Improved textures wrap support
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index 8169aae8..4d01e81a 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -2354,10 +2354,15 @@ void SetTextureWrap(Texture2D texture, int wrapMode)
rlTextureParameters(texture.id, RL_TEXTURE_WRAP_S, RL_WRAP_CLAMP);
rlTextureParameters(texture.id, RL_TEXTURE_WRAP_T, RL_WRAP_CLAMP);
} break;
- case WRAP_MIRROR:
+ case WRAP_MIRROR_REPEAT:
{
- rlTextureParameters(texture.id, RL_TEXTURE_WRAP_S, RL_WRAP_CLAMP_MIRROR);
- rlTextureParameters(texture.id, RL_TEXTURE_WRAP_T, RL_WRAP_CLAMP_MIRROR);
+ rlTextureParameters(texture.id, RL_TEXTURE_WRAP_S, RL_WRAP_MIRROR_REPEAT);
+ rlTextureParameters(texture.id, RL_TEXTURE_WRAP_T, RL_WRAP_MIRROR_REPEAT);
+ } break;
+ case WRAP_MIRROR_CLAMP:
+ {
+ rlTextureParameters(texture.id, RL_TEXTURE_WRAP_S, RL_WRAP_MIRROR_CLAMP);
+ rlTextureParameters(texture.id, RL_TEXTURE_WRAP_T, RL_WRAP_MIRROR_CLAMP);
} break;
default: break;
}