Skip to content

Commit

Permalink
update examples missing unloadtexture (#4234)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackedPixel authored Aug 9, 2024
1 parent 5233b80 commit 070c1c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/models/models_yaw_pitch_roll.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadModel(model); // Unload model data
UnloadTexture(texture); // Unload texture data

CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions examples/shaders/shaders_lightmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ int main(void)
//--------------------------------------------------------------------------------------
UnloadMesh(mesh); // Unload the mesh
UnloadShader(shader); // Unload shader
UnloadTexture(texture); // Unload texture
UnloadTexture(light); // Unload texture

CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions examples/shaders/shaders_texture_drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadShader(shader);
UnloadTexture(texture);

CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions examples/shaders/shaders_vertex_displacement.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ int main(void)
//--------------------------------------------------------------------------------------
UnloadShader(shader);
UnloadModel(planeModel);
UnloadTexture(perlinNoiseMap);

CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
Expand Down

0 comments on commit 070c1c9

Please sign in to comment.