summaryrefslogtreecommitdiff
path: root/modules/theora
diff options
context:
space:
mode:
authorLisandro Lorea <lisandrolorea@gmail.com>2022-02-01 23:54:36 -0300
committerLisandro Lorea <lisandrolorea@gmail.com>2022-02-01 23:55:17 -0300
commit69e30d91eed2310d2bf25041e84ec3a0277b7971 (patch)
tree981861eade613411c86da96bb3f3897c8dbb674e /modules/theora
parentb5707400ebb3daa346fece54c119a5da70852647 (diff)
Fix "texture not initialized" error preventing video from playing
Closes #57153
Diffstat (limited to 'modules/theora')
-rw-r--r--modules/theora/video_stream_theora.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp
index 9d297fcb93..a9652cbba1 100644
--- a/modules/theora/video_stream_theora.cpp
+++ b/modules/theora/video_stream_theora.cpp
@@ -337,6 +337,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);
} else {
/* tear down the partial theora setup */