aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wachowski <mattwach@google.com>2018-08-15 16:30:35 -0700
committerLingfeng Yang <lfy@google.com>2018-09-21 11:46:13 -0700
commit5916d54ebeb1c5dbb30111008c629274c7eea3af (patch)
tree6de20110fab84d66a6bddb01c934e3b578a552d7
parentf270f58f89e0fbfb42885513521e5f25687a9e3a (diff)
downloadgoldfish-opengl-5916d54ebeb1c5dbb30111008c629274c7eea3af.tar.gz
Partially revert ag/4742391.
Needed to fix https://android-build.googleplex.com/builds/quarterdeck?branch=git_ics-mr1-emu-dev&target=sdk_x86-sdk&lkgb=4951371&fkbb=4954575 It appears that some compiler setups do not accept the C99 syntax Bug: b/80194417 Test: Recompile Change-Id: Ica21f2dc24a526358e9ae904fba55e1aa84bc6c8
-rw-r--r--system/egl/egl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index ecfddb6e..47742f9d 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -827,9 +827,10 @@ static const char *getGLString(int glEnum)
// ----------------------------------------------------------------------------
+// Note: C99 syntax was tried here but does not work for all compilers.
static EGLClient_eglInterface s_eglIface = {
- .getThreadInfo = getEGLThreadInfo,
- .getGLString = getGLString,
+ getThreadInfo: getEGLThreadInfo,
+ getGLString: getGLString,
};
#define DBG_FUNC DBG("%s\n", __FUNCTION__)