VREffect: handle empty arrays for display bounds (#9732)
The spec has been updated so that `requestPresent` can accept empty arrays for `leftBounds` and `rightBounds`. Though Chromium returns `null` for these properties by default, Firefox returns empty arrays, and there is a proposal to make those non-nullable. This patch should fix rendering for Firefox, which is currently broken. For reference: https://github.com/w3c/webvr/issues/95 https://github.com/w3c/webvr/issues/89
Showing
想要评论请 注册 或 登录