Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fixed a typo in window.c, and fixed the neglected unloading of shader…
Browse files Browse the repository at this point in the history
…s in renderer.c, file api overhaul is next
  • Loading branch information
israfiel-a committed Sep 2, 2024
1 parent a3af0a9 commit cb69117
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Diagnostic/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
* workings, like a slight optimization. This value will reset to 0
* every new minor version.
*/
#define __LETO__VERSION__TWEAK__ 9
#define __LETO__VERSION__TWEAK__ 10

/**
* @brief This is the string represenation of Leto's base version,
Expand Down
7 changes: 6 additions & 1 deletion Source/Rendering/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ void LetoCreateRenderer(size_t shader_list_size)
application_renderer.shader_list_occupied = 0;
}

void LetoDestroyRenderer(void) { free(application_renderer.shader_list); }
void LetoDestroyRenderer(void)
{
for (size_t i = 0; i < application_renderer.shader_list_occupied; i++)
LetoUnloadShader(application_renderer.shader_list[i]);
free(application_renderer.shader_list);
}

void render(void)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Rendering/Window.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static struct
*/
static void CreateWindowObject_(GLFWmonitor* primary_monitor)
{
#if defined(__LETO__LINUX)
#if defined(__LETO__LINUX__)
application_window._w = glfwCreateWindow(
application_window._m->width, application_window._m->height,
application_window.title, primary_monitor, NULL);
Expand Down

0 comments on commit cb69117

Please sign in to comment.