Skip to content

Commit

Permalink
Merge pull request godotengine#96209 from stuartcarnie/sgc/96077/fix_…
Browse files Browse the repository at this point in the history
…sdfgi

Metal: Use correct operator to ensure specialisation constants are sorted
  • Loading branch information
akien-mga committed Aug 28, 2024
2 parents ee14810 + 4b02c9b commit f648de1
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 f648de1

Please sign in to comment.