-
-
Notifications
You must be signed in to change notification settings - Fork 414
set MLN_WITH_OPENGL=OFF by default, like Metal/Vulkan #3772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set MLN_WITH_OPENGL=OFF by default, like Metal/Vulkan #3772
Conversation
Bloaty Results 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3772-compared-to-main.txtCompared to d387090 (legacy)
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-3772-compared-to-legacy.txt |
Benchmark Results ⚡
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-3772-compared-to-main.txt |
Might need to update CMakePresets.json. But good to merge if CI passes. |
Bloaty Results (iOS) 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-3772-compared-to-main.txt |
All pass, except for Windows MSYS2 CI, which appear to fail because of MSYS2's toolchain is linking both static (libz.a, libstdc++.a) and dynamic (libz.dll.a) versions, causing duplicate symbols. I don't think it's caused by this PR - has it been reported before? Setting the --allow-multiple-definitions doesn´t seem to resolve it. |
Yes it is a known issue. #3670 |
0bb4302
to
964e685
Compare
* main: Create macOS amalgamation for core releases (maplibre#3768) Add weak pointer handling (maplibre#3763) Temporarily disable Windows CI (maplibre#3775) chore(ci): pin actions to shas (maplibre#3769) Fix compile error when building with MLN_USE_TRACY (maplibre#3774) set MLN_WITH_OPENGL=OFF by default, like Metal/Vulkan (maplibre#3772) Tweak Linux amalgamation (maplibre#3767) Tweak layer depth distribution (maplibre#3738) Add Sentry build tags (maplibre#3765) Release MapLibre Android 11.13.1 (maplibre#3761) Release MapLibre iOS 6.18.1 (maplibre#3762) Add weak pointer management to RasterSource and derived classes (maplibre#3726) Fix UB in TaggedString constructor (maplibre#3748) Add Compose Multiplatform section to README (maplibre#3751) format Bazel files with buildifier (maplibre#3756) use separate install-sccache script (maplibre#3755) Fix Android backend cleanup (maplibre#3681) # Conflicts: # include/mbgl/style/sources/raster_dem_source.hpp # include/mbgl/style/sources/vector_source.hpp # platform/ios/BUILD.bazel
To avoid issues like these
Simply make OpenGL Opt-In like Metal and Vulkan are.
Until now, to build with e.g. Metal, you had to opt into Metal (MLN_WITH_METAL=ON), but a number of issues would occur if you forget to also opt-out of OpenGL (MLN_WITH_OPENGL=OFF). This removes the need for opting out.
Added MLN_WITH_OPENGL=ON to Qt, Node CI and Android App which didn't have explicit setting of the flag.
Also change a few "else // OpenGL" to "elif OPENGL", for strict conditional logic