20,741
edits
| Line 43: | Line 43: | ||
* <code>-DDISABLE_PUI</code> | * <code>-DDISABLE_PUI</code> | ||
* <code>-DDISABLE_2DPANELS</code> | * <code>-DDISABLE_2DPANELS</code> | ||
Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway because it isn't compatible with modern OpenGL, we will disable it completely without | |||
reviewing/porting individual PUI files. This means opening $FG_SRC/CMakeLists.txt to add a new option to disable PUI. | |||
Successfully disabling a feature means primarily: | Successfully disabling a feature means primarily: | ||
| Line 48: | Line 52: | ||
* opening fg_init.cxx and navigating to the lines where the feature/subsystem is initialized | * opening fg_init.cxx and navigating to the lines where the feature/subsystem is initialized | ||
* wrapping the corresponding code in between <code>#ifdef...#endif</code> blocks | * wrapping the corresponding code in between <code>#ifdef...#endif</code> blocks | ||
* locating any remaining references to the subsystem in question and repeating the last step there | * locating any remaining references to the subsystem in question and repeating the last step there to ensure that removed subsystems are not accessed at runtime | ||
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/CMakeLists.txt | https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/CMakeLists.txt | ||