Skip to content

Commit

Permalink
TESTCASE Don't bomb out during egl test when there's no egl devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Jul 1, 2024
1 parent 343b0cb commit 4df6776
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/check_egl_device_enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def main():
devices = (EGLDeviceEXT * 10)()
count = EGLint()
major, minor = EGLint(), EGLint()
if not eglQueryDevicesEXT:
raise RuntimeError("No egl query devices extension available")
if eglQueryDevicesEXT(10, devices, count):
log.info("%s devices enumerated", count)
for i, device in enumerate(devices[: count.value]):
Expand Down

0 comments on commit 4df6776

Please sign in to comment.