On Sat 16 Apr 2016, Emil Velikov wrote:

> On 15 April 2016 at 22:04, Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> wrote:
> > EGL 1.5 also supports the EGL_CONTEXT_OPENGL_ROBUST_ACCESS
> > attribute without any extensions for both ES and non-ES.
> >
> > Signed-off-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl>
> > ---
> >  src/waffle/egl/wegl_config.c  | 9 ++++++---
> >  src/waffle/egl/wegl_context.c | 9 +++++++--
> >  src/waffle/egl/wegl_display.c | 3 +--
> >  src/waffle/egl/wegl_display.h | 2 ++
> >  4 files changed, 16 insertions(+), 7 deletions(-)


> > diff --git a/src/waffle/egl/wegl_context.c b/src/waffle/egl/wegl_context.c
> > index 67cbc04..4b208fa 100644
> > --- a/src/waffle/egl/wegl_context.c
> > +++ b/src/waffle/egl/wegl_context.c
> > @@ -96,8 +96,13 @@ create_real_context(struct wegl_config *config,
> >              }
> >
> >              if (attrs->context_robust) {
> > -                assert(dpy->KHR_create_context);
> > -                context_flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR;
> > +                if (dpy->major_version > 1 || dpy->minor_version >= 5) {
> > +                    attrib_list[i++] = 
> > EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT;
> We want EGL_CONTEXT_OPENGL_ROBUST_ACCESS (note missing _EXT) here.
> For whatever reason the two differ 0x31B2 vs 0x30BF (according to the
> includes in mesa).


> 
> With the s/_EXT//g issue above
> Reviewed-by: Emil Velikov <emil.l.veli...@gmail.com>

I fixed this and pushed the patch.
_______________________________________________
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to