Skip to content

Commit e8a58d1

Browse files
committed
Merge pull request #118909 from aurpine/fix-scene_tree-constr-vrs-texture
Fix SceneTree constructor not using VRS texture
2 parents e356499 + f45497d commit e8a58d1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

scene/main/scene_tree.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,10 +2153,7 @@ SceneTree::SceneTree() {
21532153
if (load_err) {
21542154
ERR_PRINT("Non-existing or invalid VRS texture at '" + vrs_texture_path + "'.");
21552155
} else {
2156-
Ref<ImageTexture> vrs_texture;
2157-
vrs_texture.instantiate();
2158-
vrs_texture->create_from_image(vrs_image);
2159-
root->set_vrs_texture(vrs_texture);
2156+
root->set_vrs_texture(ImageTexture::create_from_image(vrs_image));
21602157
}
21612158
}
21622159

0 commit comments

Comments
 (0)