You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source code checks for headless mode with #if BUILD_HEADLESS. This define is set by CMake to be equal to the value of the BUILD_HEADLESS CMake option, but this is incorrect. CMake options accept "ON" or "TRUE" as truthy values, but the C++ preprocessor does not. CMake should define the symbol, and it should be checked in the C++ source with #ifdef BUILD_HEADLESS.
When the preceding steps are executed, you should see that the window is still there with all the normal graphics, indicating that the option had no effect.
The text was updated successfully, but these errors were encountered:
Summary
The source code checks for headless mode with
#if BUILD_HEADLESS
. This define is set by CMake to be equal to the value of theBUILD_HEADLESS
CMake option, but this is incorrect. CMake options accept "ON" or "TRUE" as truthy values, but the C++ preprocessor does not. CMake should define the symbol, and it should be checked in the C++ source with#ifdef BUILD_HEADLESS
.Steps to reproduce
When the preceding steps are executed, you should see that the window is still there with all the normal graphics, indicating that the option had no effect.
The text was updated successfully, but these errors were encountered: