opengl: Cosmetics.

This commit is contained in:
Rod Kay
2025-10-22 14:11:39 +11:00
parent 3e11a52f5d
commit 50821bb787
60 changed files with 304 additions and 520 deletions

View File

@@ -1,3 +1,7 @@
with
ada.unchecked_Deallocation;
package body openGL.Model.texturing
is
@@ -135,8 +139,16 @@ is
procedure texture_Details_is (Self : in out textured_Item; Now : in openGL.texture_Set.item)
is
procedure free is new ada.unchecked_Deallocation (Animation, Animation_view);
begin
free (Self.texture_Set.Animation);
Self.texture_Set := Now;
if Now.Animation /= null
then
Self.texture_Set.Animation := new texture_Set.Animation' (Now.Animation.all);
end if;
end texture_Details_is;