From 1d424e50420a5b04aadb5abac2c02f4e7b797618 Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Thu, 21 Mar 2019 23:00:14 +0200 Subject: [PATCH] no clue :) just to push it --- src/main.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index affeff7..aeb57a6 100644 --- a/src/main.cc +++ b/src/main.cc @@ -72,6 +72,7 @@ static TerrainParams p; static Texture *skybox_tex; static Texture *irradiance_tex; static Texture *terrain_tex; +static Texture *dirt_tex; static Material terrain_mat; static Renderer *terrain_rend; @@ -136,7 +137,13 @@ static bool init(Gfx_API api) terrain_tex = gfx_create_texture(); if(!terrain_tex->load("data/grass.jpeg")) { - fprintf(stderr, "Failed to load ground texture.\n"); + fprintf(stderr, "Failed to load ground grass texture.\n"); + return false; + } + + dirt_tex = gfx_create_texture(); + if(!dirt_tex->load("data/dirt.jpg")) { + fprintf(stderr, "Failed to load ground dirt texture.\n"); return false; } -- 1.7.10.4