From 4b02c9bb0a3bfa4f1df4fe68e7c938d788b3b38c Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Wed, 28 Aug 2024 20:07:19 +1000 Subject: [PATCH] Metal: Use correct operator to ensure all specialisation constants are applied Fixes #96077 --- drivers/metal/rendering_device_driver_metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/metal/rendering_device_driver_metal.mm b/drivers/metal/rendering_device_driver_metal.mm index 0d88a14fbc4..9d691a0d230 100644 --- a/drivers/metal/rendering_device_driver_metal.mm +++ b/drivers/metal/rendering_device_driver_metal.mm @@ -3112,7 +3112,7 @@ RenderingDeviceDriverMetal::Result> RenderingDeviceDriverMetal:: NSArray *constants = function.functionConstantsDictionary.allValues; bool is_sorted = true; for (uint32_t i = 1; i < constants.count; i++) { - if (constants[i - 1].index < constants[i].index) { + if (constants[i - 1].index > constants[i].index) { is_sorted = false; break; }