Skip to content

Commit 02bfa93

Browse files
refactor(texture): texture loading accelerated even more
1 parent ebbf1b9 commit 02bfa93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xcoder/images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def load_image_from_buffer(pixel_type: int, width: int, height: int) -> Image.Im
2424
with open("pixel_buffer", "rb") as pixel_buffer:
2525
pixel_buffer.read(1)
2626

27-
return Image.frombytes(
27+
return Image.frombuffer(
2828
get_format_by_pixel_type(pixel_type), (width, height), pixel_buffer.read()
2929
)
3030

0 commit comments

Comments
 (0)