mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-18 12:16:33 -04:00
fix loading jpeg/jpg images
This commit is contained in:
parent
03b37797a3
commit
ece18c017c
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ static func load_external_tex(path: String) -> Texture2D:
|
|||
match path.get_extension():
|
||||
"png":
|
||||
image.load_png_from_buffer(bytes)
|
||||
["jpeg", "jpg"]:
|
||||
"jpeg", "jpg":
|
||||
image.load_jpg_from_buffer(bytes)
|
||||
"webp":
|
||||
image.load_webp_from_buffer(bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue