Rename instance()->instantiate() when it's a verb
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
static Ref<ResourceFormatLoaderTheora> resource_loader_theora;
|
||||
|
||||
void register_theora_types() {
|
||||
resource_loader_theora.instance();
|
||||
resource_loader_theora.instantiate();
|
||||
ResourceLoader::add_resource_format_loader(resource_loader_theora, true);
|
||||
|
||||
ClassDB::register_class<VideoStreamTheora>();
|
||||
|
||||
@ -335,7 +335,7 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
|
||||
size.y = h;
|
||||
|
||||
Ref<Image> img;
|
||||
img.instance();
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user