You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add static methods for creating Image and ImageTexture
This commit is contained in:
@@ -331,7 +331,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8);
|
||||
texture->create_from_image(img);
|
||||
texture->set_image(img);
|
||||
|
||||
} else {
|
||||
/* tear down the partial theora setup */
|
||||
|
||||
Reference in New Issue
Block a user