Thaddeus Crews
156bc92282
Merge pull request #98397 from adamscott/add-tmp-support
...
Add temp utilities (alias `OS::get_temp_dir()`, `FileAccess::create_temp()`, and `DirAccess::create_temp()`)
2024-12-03 14:40:59 -06:00
Thaddeus Crews
608cccc64e
Merge pull request #99919 from bruvzg/ferror
...
[FileAccess] Set `last_error` on file read/write errors.
2024-12-03 14:40:57 -06:00
Thaddeus Crews
70dae45dd0
Merge pull request #99905 from stuartcarnie/fix_external_texture
...
Metal: Ensure `texture_create_from_extension` returns correct pixel format
2024-12-03 14:40:55 -06:00
Thaddeus Crews
6478f296bc
Merge pull request #99720 from mrsaturnsan/mac_vsync_fix
...
Fix vsync on macOS getting disabled when using `afterMinimumDuration`
2024-12-03 14:40:44 -06:00
Stuart Carnie
7caa039183
Metal: Ensure texture_create_from_extension
returns correct pixel format
2024-12-03 05:45:50 +11:00
Adam Scott
1b3e483899
Add file and dir temporary utilities
...
Co-authored by @Alex2782 for the Android bindings.
Many thanks to the reviewers also.
Co-authored-by: Alex <alex.hart.278@gmail.com>
2024-12-02 12:08:14 -05:00
Rémi Verschelde
101b7414d2
Merge pull request #99036 from bruvzg/propkey_rename
...
[Windows] Rename `PKEY_Device_FriendlyName` to avoid duplicate symbols with newer MinGW SDKs.
2024-12-02 15:51:02 +01:00
bruvzg
d97313cd7d
[FileAccess] Set last_error
on file read/write errors.
2024-12-02 15:05:50 +02:00
Rémi Verschelde
c2f19e98bc
Merge pull request #98921 from RandomShaper/win_many_files
...
Raise the number of file handles on Windows
2024-11-29 22:46:54 +01:00
bruvzg
a4b17e7852
[FileAccess] Return error codes from store_*
methods.
2024-11-29 23:22:31 +02:00
Thaddeus Crews
6e533b5ee4
Merge pull request #99606 from jamie-pate/fix_99592
...
Fix gl_compatibility lightmap uniforms not being set
2024-11-27 10:46:58 -06:00
mrsaturnsan
627d10e4c4
Fix vsync on macOS getting disabled when using afterMinimumDuration
2024-11-26 15:38:32 -06:00
Thaddeus Crews
127738c08b
Merge pull request #99387 from 0x0ACB/direct_composition
...
Use direct composition for d3d12 backend
2024-11-26 13:04:53 -06:00
0x0ACB
a8cd0e9677
Use direct composition for d3d12 backend
2024-11-26 10:28:40 +01:00
Jamie Pate
45a7bcc477
Fix gl_compatibility lightmap uniforms not being set
...
Fixes #99592
The following variables were set too early, and later code never ran..
prev_shader, prev_variant, prev_spec_constants variables
These variables were shared in two different branch conditions but were
updated inside the first one, so the second could never be true..
The condition to update lighting also should check prev_spec_constants
since it updates that uniform.
2024-11-23 16:43:07 -08:00
Pāvels Nadtočajevs
e9b57fce82
Convert line breaks to \n
and strip line break from the end of string returned by OS::read_string_from_stdin
/OS::get_stdin_string
.
2024-11-23 15:11:50 +02:00
Thaddeus Crews
dcb59f0e7e
Merge pull request #99548 from Repiteo/style/clang-format-19-options
...
Style: Add 19.1.0 LLVM options to `.clang-format`
2024-11-22 14:54:29 -06:00
Thaddeus Crews
e8a4b45ce4
Style: Add 19.1.0 LLVM options to .clang-format
2024-11-22 09:24:32 -06:00
clayjohn
2b68c63a88
Mask out shadows on CanvasItems that don't have a matching item_shadow_mask
...
This restores the behavior from 3.x
2024-11-21 22:15:54 -08:00
Thaddeus Crews
030cc69771
Merge pull request #96399 from andyprice/fileperms
...
Unix: Don't create world-writable files when safe save is enabled
2024-11-21 17:56:53 -06:00
Thaddeus Crews
8eee5066eb
Merge pull request #94981 from Chaosus/shader_fix_screen_uv_in_spatial_light
...
Allow `SCREEN_UV` to be used in light function of spatial shader
2024-11-21 17:56:45 -06:00
Chaosus
a64b3fd3f8
Allow SCREEN_UV
to be used in light function of spatial shader
2024-11-19 11:39:49 +03:00
Alexander Hartmann
8e170248b3
Fix: Error output is not require, VK_QUEUE_TRANSFER_BIT
is optional.
2024-11-19 03:01:07 +01:00
Thaddeus Crews
fd4c29a189
Merge pull request #98683 from clayjohn/wireframe
...
Ensure shadow material and mesh are not used with wireframe mode
2024-11-18 09:23:54 -06:00
Thaddeus Crews
0a50cef751
Merge pull request #98788 from Bonkahe/master
...
Add `multimesh_get_buffer_rd_rid` method to `RenderingServer`.
2024-11-18 09:23:46 -06:00
Thaddeus Crews
1dcb686325
Merge pull request #99026 from Faless/net/split_ip
...
[Net] Split Unix/Windows IP implementation
2024-11-18 09:23:43 -06:00
Thaddeus Crews
2dbf195af5
Merge pull request #98983 from nikitalita/patch-2
...
Prevent stack-use-after-scope in rendering_device_driver_metal.mm
2024-11-18 09:23:33 -06:00
Thaddeus Crews
6330db475f
Merge pull request #87558 from clayjohn/GLES3-canvas-spec
...
Reduce shader permutations in the compatibility backend
2024-11-18 09:23:29 -06:00
A Thousand Ships
68f638cf02
Use (r)find_char
instead of (r)find
for single characters
2024-11-17 10:02:18 +01:00
clayjohn
90b4b48b5a
Ensure shadow material and mesh are not used with wireframe mode
...
And in the Compatibility renderer actually use the wireframe render mode
2024-11-16 22:25:00 -08:00
clayjohn
c810ea4c1b
Reduce shader permutations in the compatibility backend
2024-11-15 23:13:33 -08:00
Stuart Carnie
9c2ca820f2
Metal: Ensure position invariance is captured from SPIRV-Cross
...
Closes #99029
2024-11-15 14:06:32 +11:00
David House
6e9d31f602
Implemented multimesh_get_buffer_rd_rid function into RenderingServer.
...
Fixed style error.
Updated dummy mesh_storage to move from cpp to h the return of a blank Rid on _multimesh_get_buffer_rd_rid.
2024-11-14 15:52:08 -06:00
Thaddeus Crews
48d13ca11b
Merge pull request #99041 from mrsaturnsan/metal_frame_pacing
...
Use afterMinimumDuration to correct frame pacing
2024-11-14 14:51:49 -06:00
Thaddeus Crews
15d09a5767
Merge pull request #99149 from mrsaturnsan/set_max_fps_fix
...
Fix max FPS initialization
2024-11-13 08:34:21 -06:00
Thaddeus Crews
150590a7e8
Merge pull request #98975 from clayjohn/D3D12-event-timing
...
Move D3D12 fence `SetEventOnCompletion` call to `fence_wait` to avoid stalling on some platforms
2024-11-13 08:33:55 -06:00
Fabio Alessandrelli
fc52821cfb
[Net] Properly rename NetSocketPosix to NetSocketUnix
2024-11-13 10:27:01 +01:00
mrsaturnsan
376c6c0c7d
Use afterMinimumDuration to correct frame pacing
2024-11-12 21:19:38 -06:00
mrsaturnsan
4b94162320
Fix max FPS initialization
...
Remove unnecessary get_max_fps
2024-11-12 21:10:27 -06:00
Thaddeus Crews
179321a0a3
Merge pull request #91201 from bruvzg/con_type
...
[OS] Add functions to determine standard I/O device type.
2024-11-12 12:13:12 -06:00
Fabio Alessandrelli
168a2a1466
[Net] Split Unix/Windows IP implementation
2024-11-12 17:33:47 +01:00
Thaddeus Crews
1cbe9715ea
Merge pull request #98969 from Faless/net/split_sockets
...
[Net] Split Unix/Windows NetSocket implementation
2024-11-12 09:27:40 -06:00
Pāvels Nadtočajevs
c363e13051
[Windows] Rename PKEY_Device_FriendlyName
to avoid duplicate symbols with newer MinGW SDKs.
2024-11-10 21:46:10 +02:00
Thaddeus Crews
246e8e9ecc
Merge pull request #98803 from stuartcarnie/metal_multiview
...
Metal: Multiview support
2024-11-10 12:13:02 -06:00
Thaddeus Crews
b80aa65467
Merge pull request #98927 from fire/warn-file-case-mismatch
...
Warn on filesystem case mismatch
2024-11-10 12:13:01 -06:00
Thaddeus Crews
bbde4ed324
Merge pull request #98883 from ducklin5/fix/VkResultError
...
Add vulkan error checks in command_queue_execute_and_present
2024-11-10 12:12:41 -06:00
Thaddeus Crews
2b02143d35
Merge pull request #98307 from clayjohn/Light2D-shadow-projection
...
Precompute projection matrices when rendering 2D shadows
2024-11-10 12:12:14 -06:00
Fabio Alessandrelli
0c620b29cd
[Net] Split Unix/Windows NetSocket implementation
2024-11-10 16:13:50 +01:00
nikitalita
78895c709c
Prevent stack-use-after-scope in rendering_device_driver_metal.mm
2024-11-09 00:07:33 -06:00
Valentin Cocaud
c09731c413
Warn on filesystem case mismatch
...
When a file is opened with a wrong case, it can work on the developer system but break on a user system with a case-sensitive filesystem.
This will display a warning when it happens.
CAVEATS: It will also display the warning if a symlink is in the path.
Adapt warning if the file is a symlink. Avoid warning on symlinks.
Fix memory leak and avoid `lstat` usage.
Avoid exposing real_path when not in TOOLS_ENABLED mode.
2024-11-08 14:23:41 -08:00