Hi Daniel,

On Tue, 22 Mar 2016 09:02:55 +0000
Daniel Stone <[email protected]> wrote:

> Hi Miguel,
> 
> On 21 March 2016 at 16:37, Miguel A. Vico <[email protected]>
> wrote:
> > +       egl_surface = gl_renderer_create_window_surface(gr,
> > +
> > window_for_legacy,
> > +
> > window_for_platform,
> > +
> > config_attribs,
> > +                                                       visual_id,
> > n_ids); +
> > +       ret = gl_renderer_output_create(output, egl_surface);
> > +       if (ret < 0 && egl_surface != EGL_NO_SURFACE)
> > +               eglDestroySurface(gr->egl_display, egl_surface);  
> 
> I'm not a huge fan of the error-handling here: I'd rather see an
> instant return -1 from this function if we can't create an EGLSurface,
> rather than relying on gl_renderer_output_create to check and handle
> it for us.

Heh, yeah, I'll change it.

Thanks.

> 
> Otherwise I guess this looks OK.
> 
> Cheers,
> Daniel


-- 
Miguel

NVIDIA GmbH, Wuerselen, Germany, Amtsgericht Aachen, HRB 8361
Managing Director: Karen Theresa Burns

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to