Skip to content

Commit

Permalink
Metal: Use correct operator to ensure all specialisation constants ar…
Browse files Browse the repository at this point in the history
…e applied

Fixes godotengine#96077
  • Loading branch information
stuartcarnie committed Aug 28, 2024
1 parent db24ed4 commit 4b02c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/metal/rendering_device_driver_metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3112,7 +3112,7 @@ bool isArrayTexture(MTLTextureType p_type) {
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;
}
Expand Down

0 comments on commit 4b02c9b

Please sign in to comment.