diff options
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,9 @@ void initGame(Game* game) game->heightmap.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = game->assets.textures[HEIGHT_MAP_TEXTURE]; + game->heightmapColors = LoadImageColors( + game->assets.images[HEIGHT_MAP_IMAGE]); + DisableCursor(); } @@ -73,5 +76,6 @@ void closeGame(Game* game) { closeAssets(&game->assets); UnloadModel(game->heightmap); + UnloadImageColors(game->heightmapColors); CloseWindow(); } |