OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
665cad1
)
egl/dri2: micro optimise dri2_bind_extensions()
author
Emil Velikov
<emil.velikov@collabora.com>
Thu, 25 Aug 2016 08:51:54 +0000
(09:51 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:46:09 +0000
(12:46 +0100)
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
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index
dfc6f0b
..
c8dfa07
100644
(file)
--- a/
src/egl/drivers/dri2/egl_dri2.c
+++ b/
src/egl/drivers/dri2/egl_dri2.c
@@
-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;
}
}
}