Merge pull request #66911 from clayjohn/imagetexture3d

Properly assign texture RID when creating ImageTexture3D
This commit is contained in:
Rémi Verschelde 2022-10-05 08:32:11 +02:00
commit 9513034b88

View file

@ -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;