mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Ensure images used for textures are RGBA
This commit is contained in:
parent
34d4689672
commit
be78f5257a
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ class Camera(object):
|
|||
if path not in self.path_to_texture_id:
|
||||
# A way to increase tid's sequentially
|
||||
tid = len(self.path_to_texture_id)
|
||||
im = Image.open(path)
|
||||
im = Image.open(path).convert("RGBA")
|
||||
texture = self.ctx.texture(
|
||||
size=im.size,
|
||||
components=len(im.getbands()),
|
||||
|
|
Loading…
Add table
Reference in a new issue