diff --git a/hypgraph.cpp b/hypgraph.cpp index 07956a8a..c52d3927 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1573,7 +1573,11 @@ EX void enable_flat_model() { #if HDR /** \brief enable the 'flat' model for drawing HUD. Use RAII so it will be switched back later */ -namespace stretch { extern ld factor; } namespace ray { extern bool in_use; } +namespace stretch { extern ld factor; } + +#if CAP_RAY +namespace ray { extern bool in_use; } +#endif struct flat_model_enabler { projection_configuration bak;