Rename instance()->instantiate() when it's a verb
This commit is contained in:
parent
60dcc4f39c
commit
e28fd07b2b
371 changed files with 1318 additions and 1318 deletions
|
|
@ -52,7 +52,7 @@ static void _compress_pvrtc1_4bpp(Image *p_img) {
|
|||
bool use_alpha = img->detect_alpha();
|
||||
|
||||
Ref<Image> new_img;
|
||||
new_img.instance();
|
||||
new_img.instantiate();
|
||||
new_img->create(img->get_width(), img->get_height(), img->has_mipmaps(), use_alpha ? Image::FORMAT_PVRTC1_4A : Image::FORMAT_PVRTC1_4);
|
||||
|
||||
Vector<uint8_t> data = new_img->get_data();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
static Ref<ResourceFormatPVR> resource_loader_pvr;
|
||||
|
||||
void register_pvr_types() {
|
||||
resource_loader_pvr.instance();
|
||||
resource_loader_pvr.instantiate();
|
||||
ResourceLoader::add_resource_format_loader(resource_loader_pvr);
|
||||
|
||||
_register_pvrtc_compress_func();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue