[Renderers/Raylib] Reuse memory in raylib renderer for temporary string allocations

This commit is contained in:
Nic Barker 2025-03-13 09:51:44 +13:00 committed by GitHub
commit bee93bc7ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 6 deletions

View file

@ -50,4 +50,6 @@ int main(void) {
Clay_Raylib_Render(renderCommands, fonts);
EndDrawing();
}
// This function is new since the video was published
Clay_Raylib_Close();
}

View file

@ -72,4 +72,6 @@ int main(void) {
Clay_Raylib_Render(renderCommandsBottom, fonts);
EndDrawing();
}
Clay_Raylib_Close();
}

View file

@ -250,5 +250,6 @@ int main(void) {
}
UpdateDrawFrame(fonts);
}
Clay_Raylib_Close();
return 0;
}