Fix "texture not initialized" error preventing video from playing

Closes #57153
This commit is contained in:
Lisandro Lorea 2022-02-01 23:54:36 -03:00
parent b5707400eb
commit 69e30d91ee
No known key found for this signature in database
GPG Key ID: 2EADC564F354D2D7

View File

@ -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 */