Make some Image methods static
This commit is contained in:
@ -336,9 +336,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
size.x = w;
|
||||
size.y = h;
|
||||
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8);
|
||||
Ref<Image> img = Image::create_empty(w, h, false, Image::FORMAT_RGBA8);
|
||||
texture->set_image(img);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user