This eliminates a huge cost when using EGL.

Signed-off-by: Keith Packard <[email protected]>
---
 glamor/glamor_egl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 8123421..0248efa 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -116,9 +116,6 @@ glamor_egl_put_context(struct glamor_context *glamor_ctx)
 {
     if (--glamor_ctx->get_count)
         return;
-
-    eglMakeCurrent(glamor_ctx->display, EGL_NO_SURFACE,
-                   EGL_NO_SURFACE, EGL_NO_CONTEXT);
 }
 
 static EGLImageKHR
-- 
1.9.0

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to