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
This commit is contained in:
parent
dfc11ac5c2
commit
b4ba50dd83
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user