OSDN Git Service

Fix the GLES version number in the emulator encoder
authorYahan Zhou <yahan@google.com>
Fri, 29 Jan 2016 20:12:57 +0000 (12:12 -0800)
committerYahan Zhou <yahan@google.com>
Wed, 3 Feb 2016 01:41:38 +0000 (01:41 +0000)
commit1755bf31053bcab2512fbeaab2118d214799ad05
tree23dc23439fa0842217051ccfde8bb9fee9bb7f1c
parentbc8c1bd8c5947167817d42d8e79b3821fd1c404a
Fix the GLES version number in the emulator encoder

The native code, emulator encoder and emulator decoder each keeps its
own GLES version number. Previously they are inconsistent when
EGL_CONTEXT_CLIENT_VERSION=3. In this patch, because our emulator
currently doesn't support GLES3, we return EGL_NO_CONTEXT with an
error code EGL_BAD_CONFIG when the user tries to use GLES 3.

In future when we impelment GLES3, please remmeber to change the
version number here, as well as those in native code and the emulator
decoder.

Release Note:
Report error code when setting up GLES3

Change-Id: I1d1083310d28bb57f42625daaed710711495a3ed
system/egl/egl.cpp