mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
egl: Use correct proc to meta_egl_stream_consumer_aquire_attrib
It should be eglStreamConsumerAcquireAttribNV and not eglStreamConsumerAcquireAttribEXT as the EXT variant is not defined in any extension. https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
parent
5a43cc5cf9
commit
778f92e170
@ -77,4 +77,20 @@ EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribEXT (EGLDisplay dpy,
|
||||
#define EGL_DRM_FLIP_EVENT_DATA_NV 0x333E
|
||||
#endif /* EGL_NV_output_drm_flip_event */
|
||||
|
||||
#ifndef EGL_NV_stream_attrib
|
||||
#define EGL_NV_stream_attrib 1
|
||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||
EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribNV(EGLDisplay dpy, const EGLAttrib *attrib_list);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribNV(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribNV(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribNV(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
|
||||
EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribNV(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
|
||||
#endif
|
||||
typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBNVPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
|
||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
|
||||
#endif /* EGL_NV_stream_attrib */
|
||||
|
||||
#endif /* META_EGL_EXT_H */
|
||||
|
@ -60,11 +60,10 @@ struct _MetaEgl
|
||||
|
||||
PFNEGLSTREAMCONSUMEROUTPUTEXTPROC eglStreamConsumerOutputEXT;
|
||||
|
||||
PFNEGLSTREAMCONSUMERACQUIREATTRIBEXTPROC eglStreamConsumerAcquireAttribEXT;
|
||||
|
||||
PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC eglStreamConsumerGLTextureExternalKHR;
|
||||
|
||||
PFNEGLSTREAMCONSUMERACQUIREKHRPROC eglStreamConsumerAcquireKHR;
|
||||
PFNEGLSTREAMCONSUMERACQUIREATTRIBNVPROC eglStreamConsumerAcquireAttribNV;
|
||||
|
||||
PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC eglCreateStreamFromFileDescriptorKHR;
|
||||
};
|
||||
@ -629,10 +628,10 @@ meta_egl_stream_consumer_acquire_attrib (MetaEgl *egl,
|
||||
EGLAttrib *attrib_list,
|
||||
GError **error)
|
||||
{
|
||||
if (!is_egl_proc_valid (egl->eglStreamConsumerAcquireAttribEXT, error))
|
||||
if (!is_egl_proc_valid (egl->eglStreamConsumerAcquireAttribNV, error))
|
||||
return FALSE;
|
||||
|
||||
if (!egl->eglStreamConsumerAcquireAttribEXT (display, stream, attrib_list))
|
||||
if (!egl->eglStreamConsumerAcquireAttribNV (display, stream, attrib_list))
|
||||
{
|
||||
set_egl_error (error);
|
||||
return FALSE;
|
||||
@ -734,11 +733,10 @@ meta_egl_constructed (GObject *object)
|
||||
|
||||
GET_EGL_PROC_ADDR (eglStreamConsumerOutputEXT);
|
||||
|
||||
GET_EGL_PROC_ADDR (eglStreamConsumerAcquireAttribEXT);
|
||||
|
||||
GET_EGL_PROC_ADDR (eglStreamConsumerGLTextureExternalKHR);
|
||||
|
||||
GET_EGL_PROC_ADDR (eglStreamConsumerAcquireKHR);
|
||||
GET_EGL_PROC_ADDR (eglStreamConsumerAcquireAttribNV);
|
||||
|
||||
GET_EGL_PROC_ADDR (eglCreateStreamFromFileDescriptorKHR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user