mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
egl: set EGL_BAD_NATIVE_PIXMAP in the copy_buffers fallback
As the spec says: EGL_BAD_NATIVE_PIXMAP is generated if the implementation does not support native pixmaps. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
5463064f7a
commit
85cad15298
1 changed files with 2 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#ifndef EGL_DRI2_FALLBACKS_INCLUDED
|
||||
#define EGL_DRI2_FALLBACKS_INCLUDED
|
||||
|
||||
#include "eglcurrent.h"
|
||||
#include "egltypedefs.h"
|
||||
|
||||
struct wl_buffer;
|
||||
|
|
@ -86,7 +87,7 @@ dri2_fallback_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy,
|
|||
_EGLSurface *surf,
|
||||
void *native_pixmap_target)
|
||||
{
|
||||
return EGL_FALSE;
|
||||
return _eglError(EGL_BAD_NATIVE_PIXMAP, "no support for native pixmaps");
|
||||
}
|
||||
|
||||
static inline EGLBoolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue