From 41ba1d8da715e370d12e289844dfe0804b02b39b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 22 May 2018 22:08:24 +0200 Subject: [PATCH] made RogueViz staircase compile without CAP_TEXTURE --- rogueviz-staircase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rogueviz-staircase.cpp b/rogueviz-staircase.cpp index 3646718d..e6466b7a 100644 --- a/rogueviz-staircase.cpp +++ b/rogueviz-staircase.cpp @@ -69,9 +69,12 @@ void addTri(hyperpoint h, hyperpoint hx, hyperpoint hy, hyperpoint v, hyperpoint bool need_texture = true; +#if CAP_TEXTURE texture::texture_data tdata; // = texture::config.data; +#endif void make_texture() { +#if CAP_TEXTURE printf("make texture\n"); need_texture = false; tdata.whitetexture(); @@ -96,6 +99,7 @@ void make_texture() { } tdata.loadTextureGL(); +#endif } int savetex; @@ -135,7 +139,9 @@ void make_staircase() { } if(need_texture) { make_texture(); +#if CAP_TEXTURE rug::alternate_texture = tdata.textureid; +#endif } rug::clear_model(); printf("compute\n");