egl: break instead of looping after driver is found
authorQuanxian Wang <quanxian.wang@intel.com>
Thu, 19 Dec 2013 05:11:00 +0000 (22:11 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Dec 2013 19:44:11 +0000 (12:44 -0700)
commit1413a09f346f7b0765b303f7770ec597c78bff2f
treef35ed11aa3963417742d34096bcc489d5bd15c01
parent22bf0f3eb4668044042cdf326ccee29fa44f850a
egl: break instead of looping after driver is found

Stop searching for a driver after success.

Signed-off-by: Quanxian Wang <quanxian.wang@intel.com>
Reviewed-By: Gong, Zhigang <zhigang.gong@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/egl_dri2.c
src/gbm/backends/dri/gbm_dri.c