mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
egl: simplify loop
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Sagar Ghuge<sagar.ghuge@intel.com>
This commit is contained in:
parent
67ffb853f0
commit
177c35bf13
1 changed files with 1 additions and 3 deletions
|
|
@ -262,12 +262,10 @@ _eglFindDisplay(_EGLPlatformType plat, void *plat_dpy,
|
|||
mtx_lock(_eglGlobal.Mutex);
|
||||
|
||||
/* search the display list first */
|
||||
disp = _eglGlobal.DisplayList;
|
||||
while (disp) {
|
||||
for (disp = _eglGlobal.DisplayList; disp; disp = disp->Next) {
|
||||
if (disp->Platform == plat && disp->PlatformDisplay == plat_dpy &&
|
||||
_eglSameAttribs(disp->Options.Attribs, attrib_list))
|
||||
break;
|
||||
disp = disp->Next;
|
||||
}
|
||||
|
||||
/* create a new display */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue