Make some Image methods static
This commit is contained in:
parent
39534a7aec
commit
072f6feaba
51 changed files with 168 additions and 292 deletions
|
|
@ -298,9 +298,7 @@ void EditorVisualProfiler::_update_plot() {
|
|||
}
|
||||
}
|
||||
|
||||
Ref<Image> img;
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8, graph_image);
|
||||
Ref<Image> img = Image::create_from_data(w, h, false, Image::FORMAT_RGBA8, graph_image);
|
||||
|
||||
if (reset_texture) {
|
||||
if (graph_texture.is_null()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue