HACK: Disallow creating GLES >=3.1 contexts

We made Mesa report GLES 3.0 as the highest supported API in

bfb4edf7eb909e HACK: mesa: Force GLES 3.0

however we forgot about EGL_KHR_create_context, which should also fail
when 3.1 or newer is explicitly requested at context creation time. This
patch adds yet another hack to disallow creating contexts newer than
GLES 3.0.

BUG=b:30202361
BUG=b:31041422
TEST=Unity-based Crossy Roads and Dream Treats no longer crashing

Change-Id: Id577f56b4ec8b1e26a06a6d11a725674022eb0c3
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/377103
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
Trybot-Ready: Ilja H. Friedel <ihf@chromium.org>
Trybot-Ready: Haixia Shi <hshi@chromium.org>
Commit-Queue: Haixia Shi <hshi@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
(cherry picked from commit 29084cedadfd2922f9360cbcf924ce6c1e80f3e9)
Reviewed-on: https://chromium-review.googlesource.com/379919
1 file changed