diff options
| author | raysan5 <[email protected]> | 2021-01-31 16:22:24 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-01-31 16:22:24 +0100 |
| commit | aebcd9b5516eb44af9e91b28fb5f428ebfb94a40 (patch) | |
| tree | 8b413dea308ad4ab50126ade30c46bb509381d01 /examples | |
| parent | 96db787657313c671ff618c23ffc91638cbc72b0 (diff) | |
| download | raylib-aebcd9b5516eb44af9e91b28fb5f428ebfb94a40.tar.gz raylib-aebcd9b5516eb44af9e91b28fb5f428ebfb94a40.zip | |
Update models_first_person_maze.c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/models/models_first_person_maze.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/models/models_first_person_maze.c b/examples/models/models_first_person_maze.c index 07c51b9a..2d37e978 100644 --- a/examples/models/models_first_person_maze.c +++ b/examples/models/models_first_person_maze.c @@ -35,7 +35,7 @@ int main(void) model.materials[0].maps[MAP_DIFFUSE].texture = texture; // Set map diffuse texture // Get map image data to be used for collision detection - Color *mapPixels = GetImageData(imMap); + Color *mapPixels = LoadImageColors(imMap); UnloadImage(imMap); // Unload image from RAM Vector3 mapPosition = { -16.0f, 0.0f, -8.0f }; // Set model position @@ -113,13 +113,13 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - free(mapPixels); // Unload color array + UnloadImageColors(mapPixels); // Unload color array - UnloadTexture(cubicmap); // Unload cubicmap texture - UnloadTexture(texture); // Unload map texture - UnloadModel(model); // Unload map model + UnloadTexture(cubicmap); // Unload cubicmap texture + UnloadTexture(texture); // Unload map texture + UnloadModel(model); // Unload map model - CloseWindow(); // Close window and OpenGL context + CloseWindow(); // Close window and OpenGL context //-------------------------------------------------------------------------------------- return 0; |
