added missing CAP_SOLV and CAP_TEXTURE guards

This commit is contained in:
Zeno Rogue 2019-11-03 14:20:24 +01:00
parent a0edba1922
commit a080be76ad
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -168,6 +168,7 @@ shared_ptr<glhr::GLprogram> 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<glhr::GLprogram> write_shader(flagtype shader_flags) {
}
treset = true;
break;
#endif
case gcNil:
vsh += nilv::nilshader;
break;