summaryrefslogtreecommitdiff
path: root/cmds/flatland/Main.cpp
diff options
context:
space:
mode:
author Aurimas Liutikas <aurimas@google.com> 2016-02-16 10:42:52 -0800
committer Aurimas Liutikas <aurimas@google.com> 2016-02-18 09:22:30 -0800
commitcae752bea130d33a54c94ac5d30106ed70df278c (patch)
tree4e238042f392f9ab07886ad3510a07ec220e70e9 /cmds/flatland/Main.cpp
parent07320bc921103c6b3253555ea9c75c5775a2872b (diff)
Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp
Cherry-pick of https://android-review.googlesource.com/#/c/202956/ Bug: http://b/27068438 Change-Id: I83c56d8a0d19f6c86380b42b024331b5c262860a
Diffstat (limited to 'cmds/flatland/Main.cpp')
-rw-r--r--cmds/flatland/Main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmds/flatland/Main.cpp b/cmds/flatland/Main.cpp
index 866203f3f2..c47b0c8f4b 100644
--- a/cmds/flatland/Main.cpp
+++ b/cmds/flatland/Main.cpp
@@ -206,8 +206,8 @@ static const BenchmarkDesc benchmarks[] = {
static const ShaderDesc shaders[] = {
{
- name: "Blit",
- vertexShader: {
+ .name="Blit",
+ .vertexShader={
"precision mediump float;",
"",
"attribute vec4 position;",
@@ -223,7 +223,7 @@ static const ShaderDesc shaders[] = {
" texCoords = uvToTex * uv;",
"}",
},
- fragmentShader: {
+ .fragmentShader={
"#extension GL_OES_EGL_image_external : require",
"precision mediump float;",
"",
@@ -240,8 +240,8 @@ static const ShaderDesc shaders[] = {
},
{
- name: "Gradient",
- vertexShader: {
+ .name="Gradient",
+ .vertexShader={
"precision mediump float;",
"",
"attribute vec4 position;",
@@ -257,7 +257,7 @@ static const ShaderDesc shaders[] = {
" interp = (uvToInterp * uv).x;",
"}",
},
- fragmentShader: {
+ .fragmentShader={
"precision mediump float;",
"",
"varying float interp;",