diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-18 09:23:33 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-18 09:23:33 -0600 |
commit | 2dbf195af545e4d551c2c75602c61de1df18e36b (patch) | |
tree | f223be327d7aa8bc334a2629d7c8612fb3a82aa5 /drivers | |
parent | fa29dde142887bff929ef7fbd71d5e57328bc650 (diff) | |
parent | 78895c709c61eaff5450aed55744cbf7d2e491e6 (diff) | |
download | redot-engine-2dbf195af545e4d551c2c75602c61de1df18e36b.tar.gz |
Merge pull request #98983 from nikitalita/patch-2
Prevent stack-use-after-scope in rendering_device_driver_metal.mm
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/metal/rendering_device_driver_metal.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/metal/rendering_device_driver_metal.mm b/drivers/metal/rendering_device_driver_metal.mm index 3d58d535eb..784c9d5ae8 100644 --- a/drivers/metal/rendering_device_driver_metal.mm +++ b/drivers/metal/rendering_device_driver_metal.mm @@ -2020,7 +2020,8 @@ Vector<uint8_t> RenderingDeviceDriverMetal::shader_compile_binary_from_spirv(Vec ERR_FAIL_COND_V_MSG(compiler.get_entry_points_and_stages().size() != 1, Result(), "Expected a single entry point and stage."); - EntryPoint &entry_point_stage = compiler.get_entry_points_and_stages().front(); + SmallVector<EntryPoint> entry_pts_stages = compiler.get_entry_points_and_stages(); + EntryPoint &entry_point_stage = entry_pts_stages.front(); SPIREntryPoint &entry_point = compiler.get_entry_point(entry_point_stage.name, entry_point_stage.execution_model); // Process specialization constants. |