Update display detection
This commit is contained in:
@@ -73,9 +73,11 @@ static int drm_find_psvr_fd(SwapChain * swapChain, int fd)
|
||||
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)
|
||||
{
|
||||
char edid[EDID_SIZE];
|
||||
@@ -89,6 +91,8 @@ static int drm_find_psvr_fd(SwapChain * swapChain, int fd)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
drmModeFreeProperty(prop);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user