diff options
Diffstat (limited to 'examples/web/models/models_first_person_maze.c')
| -rw-r--r-- | examples/web/models/models_first_person_maze.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/models/models_first_person_maze.c b/examples/web/models/models_first_person_maze.c index 3f7f5b2..9aae811 100644 --- a/examples/web/models/models_first_person_maze.c +++ b/examples/web/models/models_first_person_maze.c @@ -63,7 +63,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 - mapPixels = GetImageData(imMap); + mapPixels = LoadImageColors(imMap); UnloadImage(imMap); // Unload image from RAM playerPosition = camera.position; // Set player position @@ -85,7 +85,7 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - free(mapPixels); // Unload color array + UnoadImageColors(mapPixels); // Unload color array UnloadTexture(cubicmap); // Unload cubicmap texture UnloadTexture(texture); // Unload map texture |
