OSDN Git Service

Add suggested braces for subobject initialization.
authorNicolas Capens <capn@google.com>
Sat, 2 Jan 2016 05:00:35 +0000 (00:00 -0500)
committerNicolas Capens <capn@google.com>
Sat, 9 Jan 2016 02:53:25 +0000 (02:53 +0000)
Bug 15387371

Change-Id: I771b6e9f30669aade18eba8b3749fcb71ae8ef97
Reviewed-on: https://swiftshader-review.googlesource.com/4501
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/Shader/PixelShader.cpp

index 2823aed..f569342 100644 (file)
@@ -220,7 +220,7 @@ namespace sw
                                }
                        }
 
-                       bool interpolant[MAX_INPUT_VARYINGS][4] = {false};   // Interpolants in use
+                       bool interpolant[MAX_INPUT_VARYINGS][4] = {{false}};   // Interpolants in use
 
                        for(unsigned int i = 0; i < instruction.size(); i++)
                        {