Properly assign texture RID when creating ImageTexture3D
This commit is contained in:
parent
0056acf46f
commit
7fdb460e5d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue