mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 16:30:05 +01:00
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
1 changed files with 1 additions and 5 deletions
|
|
@ -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…
Add table
Reference in a new issue