summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-06-27 20:07:20 +0100
committerEmil Velikov <[email protected]>2018-08-07 17:59:24 +0100
commit85cad15298e283daca9bd31701c15cd8b602277a (patch)
treeba28001c650dab5c58fb71f41595c06b9a6051d4 /src
parent5463064f7a0864dfaa1599b4d0899bd5f975da39 (diff)
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 <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/egl_dri2_fallbacks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
index a664677572e..1482f17d476 100644
--- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h
+++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
@@ -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