mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
egl/dri2: Fix a weird conditional in dri2_make_current
It's not valid to get here with no context but with real surfaces. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18824>
This commit is contained in:
parent
04826cd9fc
commit
71224789cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1825,7 +1825,7 @@ dri2_make_current(_EGLDisplay *disp, _EGLSurface *dsurf,
|
|||
rdraw = (rsurf) ? dri2_dpy->vtbl->get_dri_drawable(rsurf) : NULL;
|
||||
cctx = (dri2_ctx) ? dri2_ctx->dri_context : NULL;
|
||||
|
||||
if (cctx || ddraw || rdraw) {
|
||||
if (cctx) {
|
||||
if (!dri2_dpy->core->bindContext(cctx, ddraw, rdraw)) {
|
||||
_EGLContext *tmp_ctx;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue