Commit Graph

834 Commits

Author SHA1 Message Date
ArchercatNEO 3f29efc8a2 HDR: Implement surface supports HDR output.
Previously the Wayland display server would attempt to enable
HDR output and try to detect if it failed afterwards which had some issues.
Now we can query the rendering driver for support and avoid ever enabling
HDR output when this would fail.
2026-05-06 19:51:54 +01:00
Allen Pestaluky 4309120a4a Fix DisplayServerWayland::window_is_hdr_output_supported to check rendering device for HDR output support and adjust warnings/errors. 2026-04-20 11:11:01 -04:00
Thaddeus Crews 54f1178d3c Merge pull request #118676 from bruvzg/crash_mod+fmt
[macOS/Linux] Add module information to the crash handler.
2026-04-20 09:15:31 -05:00
Thaddeus Crews 1d218e652e Merge pull request #118680 from bruvzg/hdr_wnd_chk
Add a bunch of missing window existence checks to HDR methods
2026-04-18 07:28:34 -05:00
Pāvels Nadtočajevs 958510c3e9 Add a bunch of missing window existence checks to HDR methods 2026-04-17 15:53:13 +03:00
Pāvels Nadtočajevs dfe2abbf26 [macOS/Linux] Add module information to the crash handler. 2026-04-17 15:52:00 +03:00
Thaddeus Crews 77caa1c178 Merge pull request #117891 from stuartcarnie/macos_embedded_scaling_fixes
macOS: Fix embedded window scaling issues when hiDPI is disabled
2026-04-16 21:46:49 -05:00
Pāvels Nadtočajevs 2939aabf16 [ANGLE] Fix build with manually set path. 2026-04-07 22:37:06 +03:00
Thaddeus Crews 223c9417bd Merge pull request #115632 from akien-mga/gles3-split-platform-egl
GLES3: Split EGL includes in `platform_egl.h`
2026-04-07 06:44:49 -05:00
Rémi Verschelde 7567211e8b GLES3: Split EGL includes in platform_egl.h
EGL brings in platform-specific headers such as the dreaded `windows.h`,
and `platform_gl.h` is used throughout `drivers/gles3` for basic OpenGL
types such as `GLuint`. We don't want `windows.h` pollution there.

Note for Android: EGL seems used explicitly only via `rasterizer_gles3.cpp`
to enable GL debug printing, and some custom stuff in `config.cpp`.
2026-04-07 12:07:22 +02:00
Allen Pestaluky 0810756a9f Add HDR output support to Vulkan on macOS.
Co-authored-by: Josh Jones <kilauea.jones@gmail.com>
Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
2026-04-06 11:11:18 -04:00
Thaddeus Crews e37b5c4035 Merge pull request #118076 from allenwp/output-max-linear-value-events
[Apple, Wayland] HDR Output: Emit window events when HDR state changes
2026-04-03 11:52:22 -05:00
Allen Pestaluky f9145cbc72 Add HDR events for Wayland and Apple display servers
Co-authored-by: ArchercatNEO <tururu.pompella@gmail.com>
2026-04-02 12:50:38 -04:00
Stuart Carnie 8a7230132d macOS: Fix embedded window scaling issues when hiDPI is disabled
Closes #116120
Closes #116563
2026-03-31 05:49:56 +11:00
Thaddeus Crews 521e442754 Merge pull request #115896 from bruvzg/trace_x
[CrashHandler] Always print frame PCs and main module load address for retrace.
2026-03-30 13:35:29 -05:00
Thaddeus Crews a644e7ff38 Merge pull request #114861 from dalexeev/improve-editor-only-class-checking
Improve editor-only class checking
2026-03-30 13:35:14 -05:00
Pāvels Nadtočajevs c20e4dd010 [CrashHandler] Always print frame PCs and main module load address for retrace. 2026-03-27 11:34:36 +02:00
Rémi Verschelde ab9175302e Merge pull request #117830 from bruvzg/ac_scroll
[Accessibility] Do not focus on ScrollContainer scroll bars.
2026-03-26 16:02:10 +01:00
Pāvels Nadtočajevs 4a44702b29 [Accessibility] Do not focus on ScrollContainer scroll bars. 2026-03-25 17:08:28 +02:00
Danil Alexeev 32d1f518fa Improve editor-only class checking 2026-03-25 17:07:39 +03:00
Pāvels Nadtočajevs 5fc9f6b3d9 [macOS/Windows] Remove dynamically linked ANGLE support, add flag to enable/disable ANGLE.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2026-03-23 13:01:25 +02:00
Thaddeus Crews 0e8bd28a10 CI: Implement clangd-tidy as GitHub Action 2026-03-20 09:16:38 -05:00
Thaddeus Crews 2995751152 Merge pull request #114327 from LanzaSchneider/fix-non-deterministic-framework-macos
[MacOS] Fix non-deterministic framework linking order on macOS for incremental builds
2026-03-19 15:39:17 -05:00
Rémi Verschelde 98868393cc Style: Enforce #include validation hook 2026-03-18 10:41:59 +01:00
Rémi Verschelde e33e98a26f Style: Apply clang-format grouping rules 2026-03-17 20:11:01 +01:00
Rémi Verschelde 7795057e4b Misc includes or modernize fixes found via clangd-tidy 2026-03-16 21:38:26 +01:00
Colin O'Rourke 252f93ef3d Catch Header Conflict for Macs
Compiling Godot on a MacOS could produce a header conflict where MacOS runtime MAX macro was used instead Core/Typedefs MAX macro

Example: Defining a FixedVector in a header file would fail, due to MacOS MAX not being a ConstEXPR
2026-03-15 16:11:55 -07:00
Rémi Verschelde 005e054245 Remove unused includes in editor with clangd-tidy
Also includes the few changes flagged in `main`.
2026-03-15 20:47:05 +01:00
Rémi Verschelde d9b81615e5 Remove unused includes in platform with clangd-tidy
Handled Linux, Windows, Android, and (partially) Web.
2026-03-14 22:37:05 +01:00
Rémi Verschelde b15bc2894f Merge pull request #117371 from bruvzg/mac_vm_angle
[macOS] Force ANGLE (GL over Metal) when running in VM.
2026-03-14 12:16:30 +01:00
Thaddeus Crews f9a8302c83 Merge pull request #117335 from Arthurmtro/fix/steam-tracking-macos
Fix macOS Steam time tracking lost when opening a project
2026-03-13 12:14:06 -05:00
Pāvels Nadtočajevs 3d62c026f6 [macOS] Force ANGLE (GL over Metal) when running in VM. 2026-03-12 15:20:13 +02:00
Thaddeus Crews 075d6f27f1 Merge pull request #117313 from bruvzg/no_dyn
Remove AccessKit dynamic wrappers, add download script and build warning if libs are missing.
2026-03-11 15:41:31 -05:00
arthurmtro 2df02c8463 [macOS] Pass parent environment to spawned app instances 2026-03-11 21:04:08 +01:00
Pāvels Nadtočajevs dd0387fcb0 Remove AccessKit dynamic wrappers, add download script and build warning if libs are missing. 2026-03-11 14:52:38 +02:00
Rémi Verschelde e015e8bde4 Remove unused includes in core with clangd-tidy 2026-03-11 06:41:36 +01:00
Yyf2333 282e4544b0 Split VariantCaster from binder_common.h 2026-03-10 17:59:33 +08:00
Pāvels Nadtočajevs f7faabb95e [macOS] Enable wake for events if Magnet is running. 2026-03-06 13:18:30 +02:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
Thaddeus Crews 1cbe90a1e9 Merge pull request #117058 from bruvzg/mac_pre_26
[macOS] Fix building with Xcode versions older than 26.
2026-03-04 11:20:46 -06:00
Thaddeus Crews 371282b28e Merge pull request #92984 from adamscott/reveal-me
Customize the file manager label for each platform
2026-03-04 11:20:31 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Rémi Verschelde 727b06a79f Move ProcessID typedef out of OS
This allows decoupling a number of files from `os.h`.
2026-03-04 15:00:45 +01:00
Pāvels Nadtočajevs 41c6075002 [macOS] Fix building with Xcode versions older than 26. 2026-03-04 13:13:40 +02:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
Adam Scott f441172719 Customize the file manager for each platform 2026-03-02 09:42:13 -05:00
Pāvels Nadtočajevs 1306221592 Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
Rémi Verschelde d3e5ba0d6b Merge pull request #116724 from mihe/embedded-editor-crash-fix
macOS: Add `nullptr` checks of `script_debugger` in `LayerHost::gui_input`
2026-03-02 12:35:42 +01:00
Rémi Verschelde f1ce0e6510 Merge pull request #106814 from stuartcarnie/rendering/hdr-output
Apple: Support output to EDR (HDR) displays
2026-03-02 12:35:22 +01:00