mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 20:38:32 +02:00
glx/drisw: Fix glXMakeCurrent(dpy, None, ctx)
This is perfectly legal in GL 3.0+.
Fixes piglit/glx-create-context-current-no-framebuffer.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 033cfb17db)
This commit is contained in:
parent
2c9d72046f
commit
d53558fd67
1 changed files with 2 additions and 4 deletions
|
|
@ -255,11 +255,9 @@ drisw_bind_context(struct glx_context *context, struct glx_context *old,
|
|||
|
||||
driReleaseDrawables(&pcp->base);
|
||||
|
||||
if (pdraw == NULL || pread == NULL)
|
||||
return GLXBadDrawable;
|
||||
|
||||
if ((*psc->core->bindContext) (pcp->driContext,
|
||||
pdraw->driDrawable, pread->driDrawable))
|
||||
pdraw ? pdraw->driDrawable : NULL,
|
||||
pread ? pread->driDrawable : NULL))
|
||||
return Success;
|
||||
|
||||
return GLXBadContext;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue