diff options
author | Emil Velikov <[email protected]> | 2018-11-02 18:34:19 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-11-05 20:53:05 +0000 |
commit | b3ade6538798ad9bf397d8b386eab3dd8af57f3d (patch) | |
tree | 8bf21ec9812a33e743531313dae0746ffec8c4c2 /src/egl/main/eglarray.c | |
parent | 2a8fefdeb0f4e259cc01e32dae40bc2f3063f5e0 (diff) |
egl/glvnd: correctly report errors when vendor cannot be found
If the user provides an invalid display or device the ToVendor lookup
will fail.
In this case, the local [Mesa vendor] error code will be set. Thus on
sequential eglGetError(), the error will be EGL_SUCCESS.
To be more specific, GLVND remembers the last vendor and calls back
into it's eglGetError, although there's no guarantee to ever have had
one.
v2:
- Add _eglError call, so the debug callback is executed (Kyle)
- Drop XXX comment.
Piglit: tests/egl/spec/egl_ext_device_query
Fixes: ce562f9e3fa ("EGL: Implement the libglvnd interface for EGL (v3)")
Cc: Eric Engestrom <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Kyle Brenneman <[email protected]>
Diffstat (limited to 'src/egl/main/eglarray.c')
0 files changed, 0 insertions, 0 deletions