mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
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()) {
|
||||
RenderingServer::get_singleton()->texture_replace(texture, tex);
|
||||
} else {
|
||||
texture = tex;
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
Loading…
Reference in New Issue
Block a user