fix EGL extension string names
diff --git a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
index fc29d73..31db31f 100644
--- a/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
+++ b/libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
@@ -204,7 +204,7 @@
}
}
- if (strstr(egl_extensions, "ANDROID_swap_rectangle")) {
+ if (strstr(egl_extensions, "EGL_ANDROID_swap_rectangle")) {
mFlags |= SWAP_RECTANGLE;
}
@@ -250,7 +250,7 @@
mFlags |= DRAW_TEXTURE_EXTENSION;
}
if (strstr( gl_extensions, "GL_OES_EGL_image") &&
- (strstr(egl_extensions, "KHR_image_base") ||
+ (strstr(egl_extensions, "EGL_KHR_image_base") ||
strstr(egl_extensions, "EGL_KHR_image")) &&
strstr(egl_extensions, "EGL_ANDROID_image_native_buffer")) {
mFlags |= DIRECT_TEXTURE;