diff options
author | Stuart Carnie <stuart.carnie@gmail.com> | 2024-08-28 20:07:19 +1000 |
---|---|---|
committer | Stuart Carnie <stuart.carnie@gmail.com> | 2024-08-28 20:07:19 +1000 |
commit | 4b02c9bb0a3bfa4f1df4fe68e7c938d788b3b38c (patch) | |
tree | 373bb6444ed2a4527880dbb59e18162e5aa5157a | |
parent | db24ed4eadf233f75cb1ebbf7552d396fb8b4b80 (diff) | |
download | redot-engine-4b02c9bb0a3bfa4f1df4fe68e7c938d788b3b38c.tar.gz |
Metal: Use correct operator to ensure all specialisation constants are applied
Fixes #96077
-rw-r--r-- | drivers/metal/rendering_device_driver_metal.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/metal/rendering_device_driver_metal.mm b/drivers/metal/rendering_device_driver_metal.mm index 0d88a14fbc..9d691a0d23 100644 --- a/drivers/metal/rendering_device_driver_metal.mm +++ b/drivers/metal/rendering_device_driver_metal.mm @@ -3112,7 +3112,7 @@ RenderingDeviceDriverMetal::Result<id<MTLFunction>> RenderingDeviceDriverMetal:: NSArray<MTLFunctionConstant *> *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; } |