diff options
author | clayjohn <claynjohn@gmail.com> | 2022-10-04 15:04:55 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-10-04 15:04:55 -0700 |
commit | 7fdb460e5d363e6ddc5bcf9724c11c33056fc1a4 (patch) | |
tree | 96d766ae03f5d2613b5352ec0f4b330c0097da2a | |
parent | 0056acf46fc88757cae9d9f6fe9805f0eec1cd09 (diff) |
Properly assign texture RID when creating ImageTexture3D
-rw-r--r-- | scene/resources/texture.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 15678c9281..4bed2c8c7e 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -1209,6 +1209,8 @@ Error ImageTexture3D::create(Image::Format p_format, int p_width, int p_height, if (texture.is_valid()) { RenderingServer::get_singleton()->texture_replace(texture, tex); + } else { + texture = tex; } return OK; |