Commit 85cad152 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

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: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
parent 5463064f
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#ifndef EGL_DRI2_FALLBACKS_INCLUDED #ifndef EGL_DRI2_FALLBACKS_INCLUDED
#define EGL_DRI2_FALLBACKS_INCLUDED #define EGL_DRI2_FALLBACKS_INCLUDED
#include "eglcurrent.h"
#include "egltypedefs.h" #include "egltypedefs.h"
struct wl_buffer; struct wl_buffer;
...@@ -86,7 +87,7 @@ dri2_fallback_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy, ...@@ -86,7 +87,7 @@ dri2_fallback_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy,
_EGLSurface *surf, _EGLSurface *surf,
void *native_pixmap_target) void *native_pixmap_target)
{ {
return EGL_FALSE; return _eglError(EGL_BAD_NATIVE_PIXMAP, "no support for native pixmaps");
} }
static inline EGLBoolean static inline EGLBoolean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment