mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
st/egl: drm_image: Check for MESA_drm_image
MESA_drm_image isnt limited to drm platform, others can enable the extension too.
This commit is contained in:
parent
464cb3a09e
commit
9b6dc9b7a4
1 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ egl_g3d_reference_drm_buffer(_EGLDisplay *dpy, EGLint name,
|
|||
_EGLImageAttribs attrs;
|
||||
EGLint format;
|
||||
|
||||
if (dpy->Platform != _EGL_PLATFORM_DRM)
|
||||
if (!dpy->Extensions.MESA_drm_image)
|
||||
return NULL;
|
||||
|
||||
if (_eglParseImageAttribList(&attrs, dpy, attribs) != EGL_SUCCESS)
|
||||
|
|
@ -295,7 +295,7 @@ egl_g3d_export_drm_image(_EGLDriver *drv, _EGLDisplay *dpy, _EGLImage *img,
|
|||
struct egl_g3d_image *gimg = egl_g3d_image(img);
|
||||
struct winsys_handle wsh;
|
||||
|
||||
if (dpy->Platform != _EGL_PLATFORM_DRM)
|
||||
if (!dpy->Extensions.MESA_drm_image)
|
||||
return EGL_FALSE;
|
||||
|
||||
/* get shared handle */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue