浏览代码

Fix "texture not initialized" error preventing video from playing

Closes #57153
Lisandro Lorea 3 年之前
父节点
当前提交
69e30d91ee
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/theora/video_stream_theora.cpp

+ 1 - 0
modules/theora/video_stream_theora.cpp

@@ -337,6 +337,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
 		Ref<Image> img;
 		Ref<Image> img;
 		img.instantiate();
 		img.instantiate();
 		img->create(w, h, false, Image::FORMAT_RGBA8);
 		img->create(w, h, false, Image::FORMAT_RGBA8);
+		texture->create_from_image(img);
 
 
 	} else {
 	} else {
 		/* tear down the partial theora setup */
 		/* tear down the partial theora setup */