Update display detection

This commit is contained in:
2018-09-18 22:09:15 +02:00
parent 5c8f255a35
commit 6993466c60

View File

@@ -73,9 +73,11 @@ static int drm_find_psvr_fd(SwapChain * swapChain, int fd)
break; break;
} }
} }
else if (prop->flags & DRM_MODE_PROP_BLOB && strcmp(prop->name, "EDID") == 0 && 0) else if (prop->flags & DRM_MODE_PROP_BLOB && strcmp(prop->name, "EDID") == 0)
{ {
drmModePropertyBlobPtr blob_ptr = drmModeGetPropertyBlob(fd, connectorToTest->prop_values[j]); uint64_t value = connectorToTest->prop_values[j];
drmModePropertyBlobPtr blob_ptr = drmModeGetPropertyBlob(fd, value);
if (blob_ptr) if (blob_ptr)
{ {
char edid[EDID_SIZE]; char edid[EDID_SIZE];
@@ -89,6 +91,8 @@ static int drm_find_psvr_fd(SwapChain * swapChain, int fd)
} }
} }
} }
drmModeFreeProperty(prop);
} }
} }