glamor: Stop unsetting the EGL context in put_context().
This matches the Xephyr behavior. Now that we know when to reset the context in the presence of GLX, we don't need to try to keep our stuff from being smashed by GLX. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
b5e394b3f5
commit
11ff12d4e7
|
@ -112,11 +112,7 @@ glamor_egl_get_context(struct glamor_context *glamor_ctx)
|
|||
static void
|
||||
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);
|
||||
--glamor_ctx->get_count;
|
||||
}
|
||||
|
||||
static EGLImageKHR
|
||||
|
|
Loading…
Reference in New Issue