raylib: fix texture wrapping filtering artifacts (#36618)

fix wrapping artifacts
This commit is contained in:
Shane Smiskol
2025-11-13 14:58:16 -08:00
committed by GitHub
parent f93b3f51c9
commit d72a01d739
+2
View File
@@ -312,6 +312,8 @@ class GuiApplication:
texture = rl.load_texture_from_image(image)
# Set texture filtering to smooth the result
rl.set_texture_filter(texture, rl.TextureFilter.TEXTURE_FILTER_BILINEAR)
# prevent artifacts from wrapping coordinates
rl.set_texture_wrap(texture, rl.TextureWrap.TEXTURE_WRAP_CLAMP)
rl.unload_image(image)
return texture