summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-04-23 14:14:06 +0200
committerMathias Agopian <mathias@google.com>2013-04-23 14:20:16 +0200
commitb4ba50dd833d8b94043635663f2ee1ad0cb54b35 (patch)
treed5e8c86e0a9c3ab94cd682cea2a08183a6e725c1 /opengl
parentdfc11ac5c2b1b2d4077eaa268a068d18bde36420 (diff)
downloadframeworks_native-b4ba50dd833d8b94043635663f2ee1ad0cb54b35.zip
frameworks_native-b4ba50dd833d8b94043635663f2ee1ad0cb54b35.tar.gz
frameworks_native-b4ba50dd833d8b94043635663f2ee1ad0cb54b35.tar.bz2
fix a typo in EGL loader
the code intended to filter out the software-renderer, but the test as written was essentially a no-op. the problem didn't happen most of the time because we had updated egl.cfg to not even list the software renderer. the test as written didn't generate a compile-time error because String8 has a const char* cast operator; but the end result was to compare pointers instead of the string itself. http://code.google.com/p/android/issues/detail?id=54606 Change-Id: I739dd1c838fbc24c5643a631fae19713a8ef1717
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/EGL/Loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/Loader.cpp b/opengl/libs/EGL/Loader.cpp
index 00bfa5a..73fea34 100644
--- a/opengl/libs/EGL/Loader.cpp
+++ b/opengl/libs/EGL/Loader.cpp
@@ -161,7 +161,7 @@ Loader::Loader()
if (sscanf(line, "%u %u %s", &dpy, &impl, tag) == 3) {
//ALOGD(">>> %u %u %s", dpy, impl, tag);
// We only load the h/w accelerated implementation
- if (tag != String8("android")) {
+ if (String8("android") != tag) {
mDriverTag = tag;
}
}