diff --git a/raycaster.cpp b/raycaster.cpp index cfccb3d2..7cd56c15 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -70,7 +70,9 @@ EX bool available() { /** do we want to use the raycaster? */ EX bool requested() { if(!want_use) return false; + #if CAP_TEXTURE if(texture::config.tstate == texture::tsActive) return false; + #endif if(!available()) return false; if(want_use == 2) return true; return racing::on || quotient; diff --git a/shaders.cpp b/shaders.cpp index c2a464ed..e3198b48 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -168,6 +168,7 @@ shared_ptr write_shader(flagtype shader_flags) { else distfun = "length(t.xyz)"; switch(cgclass) { + #if CAP_SOLV case gcSolNIH: switch(geometry) { case gSol: @@ -184,6 +185,7 @@ shared_ptr write_shader(flagtype shader_flags) { } treset = true; break; + #endif case gcNil: vsh += nilv::nilshader; break;