Review PR and comments

This commit is contained in:
Ray 2019-09-22 21:47:19 +02:00
parent a679b0ccc0
commit bdcb16e7bb
4 changed files with 52 additions and 65 deletions

View file

@ -100,9 +100,8 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
// user must unload shaders and textures as they could be in use
// by other models....
UnloadShader(model.materials[0].shader);
// Shaders and textures must be unloaded by user,
// they could be in use by other models
UnloadTexture(model.materials[0].maps[MAP_ALBEDO].texture);
UnloadTexture(model.materials[0].maps[MAP_NORMAL].texture);
UnloadTexture(model.materials[0].maps[MAP_METALNESS].texture);
@ -111,6 +110,7 @@ int main(void)
UnloadTexture(model.materials[0].maps[MAP_IRRADIANCE].texture);
UnloadTexture(model.materials[0].maps[MAP_PREFILTER].texture);
UnloadTexture(model.materials[0].maps[MAP_BRDF].texture);
UnloadShader(model.materials[0].shader);
UnloadModel(model); // Unload model