Properly assign texture RID when creating ImageTexture3D

This commit is contained in:
clayjohn 2022-10-04 15:04:55 -07:00
parent 0056acf46f
commit 7fdb460e5d
1 changed files with 2 additions and 0 deletions

View File

@ -1209,6 +1209,8 @@ Error ImageTexture3D::create(Image::Format p_format, int p_width, int p_height,
if (texture.is_valid()) { if (texture.is_valid()) {
RenderingServer::get_singleton()->texture_replace(texture, tex); RenderingServer::get_singleton()->texture_replace(texture, tex);
} else {
texture = tex;
} }
return OK; return OK;