mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
egl/dri2: micro optimise dri2_bind_extensions()
Do not loop over all matches if we've already found one. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
665cad1658
commit
fdd373acca
1 changed files with 1 additions and 0 deletions
|
|
@ -422,6 +422,7 @@ dri2_bind_extensions(struct dri2_egl_display *dri2_dpy,
|
|||
*(const __DRIextension **) field = extensions[i];
|
||||
_eglLog(_EGL_INFO, "found extension %s version %d",
|
||||
extensions[i]->name, extensions[i]->version);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue