mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
egl: error out on eglCreateWaylandBufferFromImageWL
Currently f one does the silly thing by probing the entry point w/o checking the extension they will attempt to use the extension even though it cannot work. That is due our of of an assert which gets removed in release builds. Simply error out if the extension is not enabled. Thus we can apply some cleanups with next commits. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
46cc022d5d
commit
701311425e
1 changed files with 2 additions and 1 deletions
|
|
@ -2132,7 +2132,8 @@ eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImage image)
|
|||
_EGL_FUNC_START(disp, EGL_OBJECT_DISPLAY_KHR, NULL, EGL_FALSE);
|
||||
|
||||
_EGL_CHECK_DISPLAY(disp, NULL, drv);
|
||||
assert(disp->Extensions.WL_create_wayland_buffer_from_image);
|
||||
if (!disp->Extensions.WL_create_wayland_buffer_from_image)
|
||||
RETURN_EGL_EVAL(disp, NULL);
|
||||
|
||||
img = _eglLookupImage(image, disp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue