[cairo] [PATCH] egl: Fix eglMakeCurrent for egl surfaces

Alexandros Frantzis alexandros.frantzis at linaro.org
Tue Feb 8 12:39:42 PST 2011


On Tue, Feb 08, 2011 at 07:39:46PM +0100, Benjamin Franzke wrote:
> ---
>  src/cairo-egl-context.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/cairo-egl-context.c b/src/cairo-egl-context.c
> index b4c18fc..9f14633 100644
> --- a/src/cairo-egl-context.c
> +++ b/src/cairo-egl-context.c
> @@ -73,7 +73,7 @@ _egl_acquire (void *abstract_ctx)
>      }
>  
>      eglMakeCurrent (ctx->display,
> -		    ctx->dummy_surface, ctx->dummy_surface, ctx->context);
> +		    current_surface, current_surface, ctx->context);
>  }
>  
>  static void
> -- 
> 1.7.3.4
> 
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
> 

Hi Benjamin,

thanks for the fix. We still need to solve
https://bugs.freedesktop.org/show_bug.cgi?id=34042 in Mesa before having
a working egl backend.

In case the Mesa fix is delayed, we can work around it by having a
"dummy" EGLContext and use it whenever we try to make a surfaceless
context current. This is a last resort, of course, and I hope that we
won't need to go that way (unless we decide that we want to be
compatible with Mesa versions not having the fix).

Thanks,
Alexandros


More information about the cairo mailing list