raylib: fix texture wrapping filtering artifacts (#36618)

fix wrapping artifacts
retune-the-third
Shane Smiskol 1 day ago committed by GitHub
parent f93b3f51c9
commit d72a01d739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/lib/application.py

@ -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

Loading…
Cancel
Save