depot/third_party/nixpkgs/pkgs/applications/emulators/wine/darwin-metal-compat.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

13 lines
640 B
Diff

diff --git a/dlls/winemac.drv/cocoa_display.m b/dlls/winemac.drv/cocoa_display.m
index fbbe16efcbf..2db375ff3d5 100644
--- a/dlls/winemac.drv/cocoa_display.m
+++ b/dlls/winemac.drv/cocoa_display.m
@@ -387,7 +387,7 @@ static int macdrv_get_gpu_info_from_display_id_using_metal(struct macdrv_gpu* gp
device = [CGDirectDisplayCopyCurrentMetalDevice(display_id) autorelease];
if (device && [device respondsToSelector:@selector(registryID)])
- return macdrv_get_gpu_info_from_registry_id(gpu, device.registryID);
+ return macdrv_get_gpu_info_from_registry_id(gpu, [device registryID]);
else
return -1;
}