egl/dri2: micro optimise dri2_bind_extensions()
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 25 Aug 2016 08:51:54 +0000 (09:51 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:46:09 +0000 (12:46 +0100)
commitfdd373acca4a17093d7973c210174c1a12dd7da1
treedba35ab745c45906da80de43729a0545c014a6cd
parent665cad16580f4660d8e451cfaa8e5a9def27eb1e
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>
src/egl/drivers/dri2/egl_dri2.c