mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #66911 from clayjohn/imagetexture3d
Properly assign texture RID when creating ImageTexture3D
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user