OSDN Git Service

Fix -Wgnu-designator warnigns in cmds/flatland/Main.cpp
authorAurimas Liutikas <aurimas@google.com>
Tue, 16 Feb 2016 18:42:52 +0000 (10:42 -0800)
committerAurimas Liutikas <aurimas@google.com>
Tue, 16 Feb 2016 18:42:52 +0000 (10:42 -0800)
Bug: http://b/27068438
Change-Id: I3064950f761411fe5271c6259867ad437c71e66d

cmds/flatland/Main.cpp

index 866203f..c47b0c8 100644 (file)
@@ -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;",