Skip to content

Commit f648de1

Browse files
committed
Merge pull request godotengine#96209 from stuartcarnie/sgc/96077/fix_sdfgi
Metal: Use correct operator to ensure specialisation constants are sorted
2 parents ee14810 + 4b02c9b commit f648de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/metal/rendering_device_driver_metal.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -3112,7 +3112,7 @@ bool isArrayTexture(MTLTextureType p_type) {
31123112
NSArray<MTLFunctionConstant *> *constants = function.functionConstantsDictionary.allValues;
31133113
bool is_sorted = true;
31143114
for (uint32_t i = 1; i < constants.count; i++) {
3115-
if (constants[i - 1].index < constants[i].index) {
3115+
if (constants[i - 1].index > constants[i].index) {
31163116
is_sorted = false;
31173117
break;
31183118
}

0 commit comments

Comments
 (0)