diff -Nur libepoxy-1.2/src/dispatch_common.c libepoxy-1.2-fixed/src/dispatch_common.c --- libepoxy-1.2/src/dispatch_common.c 2014-05-14 08:22:08.000000000 +0800 +++ libepoxy-1.2-fixed/src/dispatch_common.c 2015-09-11 11:30:29.543803691 +0800 @@ -312,7 +312,11 @@ static bool epoxy_internal_has_gl_extension(const char *ext, bool invalid_op_mode) { - if (epoxy_gl_version() < 30) { + /* Use GLESv2 style for Ubuntu. Because libhybris used on Ubuntu + * phones doesn't implement GLESv3 functions, yet will still see + * the GL version as 3.0 or higher on some devices (LP: #1494240) + */ + if (true /*epoxy_gl_version() < 30*/) { const char *exts = (const char *)glGetString(GL_EXTENSIONS); if (!exts) return invalid_op_mode;