summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl_cache.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-11-16 21:45:30 -0800
committerJamie Gennis <jgennis@google.com>2011-11-17 14:06:46 -0800
commit9f43009177520c89ca03789993634a3689f41d10 (patch)
tree2d9e4bde9beee9e76ee54d66773a37eb54590982 /opengl/libs/EGL/egl_cache.cpp
parent6a6ff2015d23c68875f7e64aa6fe9fda4c4ea6f4 (diff)
downloadframeworks_native-9f43009177520c89ca03789993634a3689f41d10.zip
frameworks_native-9f43009177520c89ca03789993634a3689f41d10.tar.gz
frameworks_native-9f43009177520c89ca03789993634a3689f41d10.tar.bz2
EGL: fix blob cache extension detection
Bug: 5474671 Change-Id: I6359063ccf23f076fc84c80b8a2f6731a65eef18
Diffstat (limited to 'opengl/libs/EGL/egl_cache.cpp')
-rw-r--r--opengl/libs/EGL/egl_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/egl_cache.cpp b/opengl/libs/EGL/egl_cache.cpp
index 13a4929..fe32d43 100644
--- a/opengl/libs/EGL/egl_cache.cpp
+++ b/opengl/libs/EGL/egl_cache.cpp
@@ -85,7 +85,7 @@ void egl_cache_t::initialize(egl_display_t *display) {
bool atStart = !strncmp(BC_EXT_STR " ", exts, bcExtLen+1);
bool atEnd = (bcExtLen+1) < extsLen &&
!strcmp(" " BC_EXT_STR, exts + extsLen - (bcExtLen+1));
- bool inMiddle = strstr(" " BC_EXT_STR " ", exts);
+ bool inMiddle = strstr(exts, " " BC_EXT_STR " ");
if (equal || atStart || atEnd || inMiddle) {
PFNEGLSETBLOBCACHEFUNCSANDROIDPROC eglSetBlobCacheFuncsANDROID;
eglSetBlobCacheFuncsANDROID =