Browse Source

update examples missing unloadtexture (#4234)

pull/4243/head
Anthony Carbajal 4 months ago
committed by GitHub
parent
commit
070c1c9d63
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 0 deletions
  1. +1
    -0
      examples/models/models_yaw_pitch_roll.c
  2. +2
    -0
      examples/shaders/shaders_lightmap.c
  3. +1
    -0
      examples/shaders/shaders_texture_drawing.c
  4. +1
    -0
      examples/shaders/shaders_vertex_displacement.c

+ 1
- 0
examples/models/models_yaw_pitch_roll.c View File

@ -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
//--------------------------------------------------------------------------------------

+ 2
- 0
examples/shaders/shaders_lightmap.c View File

@ -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
//--------------------------------------------------------------------------------------

+ 1
- 0
examples/shaders/shaders_texture_drawing.c View File

@ -77,6 +77,7 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
UnloadShader(shader);
UnloadTexture(texture);
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------

+ 1
- 0
examples/shaders/shaders_vertex_displacement.c View File

@ -110,6 +110,7 @@ int main(void)
//--------------------------------------------------------------------------------------
UnloadShader(shader);
UnloadModel(planeModel);
UnloadTexture(perlinNoiseMap);
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------

Loading…
Cancel
Save