mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
Merge pull request #96209 from stuartcarnie/sgc/96077/fix_sdfgi
Metal: Use correct operator to ensure specialisation constants are sorted
This commit is contained in:
commit
f648de1a83
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user