mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
[Renderers/Raylib] Reuse memory in raylib renderer for temporary string allocations
This commit is contained in:
commit
bee93bc7ba
4 changed files with 35 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,4 +72,6 @@ int main(void) {
|
|||
Clay_Raylib_Render(renderCommandsBottom, fonts);
|
||||
EndDrawing();
|
||||
}
|
||||
|
||||
Clay_Raylib_Close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -250,5 +250,6 @@ int main(void) {
|
|||
}
|
||||
UpdateDrawFrame(fonts);
|
||||
}
|
||||
Clay_Raylib_Close();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue