diff options
| author | JosJuice <josjuice@gmail.com> | 2017-11-19 08:45:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-19 08:45:13 +0100 |
| commit | 2ead31c7697cb2e25e3fca4bd9d492cb66f93342 (patch) | |
| tree | 46f153c8097d2e24bcc9b0f11a36f594f3b40858 /Source/Core/VideoCommon/VertexManagerBase.cpp | |
| parent | 2385a03c2baa5f4d1d65f9af86801f624a59a988 (diff) | |
| parent | 518f6a362473fe73b395cb4020c1f8d2eef79d2a (diff) | |
Merge pull request #6203 from lioncash/missing-braces-warn
VideoCommon: Resolve -Wmissing-brace warnings
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexManagerBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index f06eb9b31a..97f508fca4 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -35,7 +35,7 @@ std::unique_ptr<VertexManagerBase> g_vertex_manager; // GX primitive -> RenderState primitive, no primitive restart -constexpr std::array<PrimitiveType, 8> primitive_from_gx = { +constexpr std::array<PrimitiveType, 8> primitive_from_gx{{ PrimitiveType::Triangles, // GX_DRAW_QUADS PrimitiveType::Triangles, // GX_DRAW_QUADS_2 PrimitiveType::Triangles, // GX_DRAW_TRIANGLES @@ -44,10 +44,10 @@ constexpr std::array<PrimitiveType, 8> primitive_from_gx = { PrimitiveType::Lines, // GX_DRAW_LINES PrimitiveType::Lines, // GX_DRAW_LINE_STRIP PrimitiveType::Points, // GX_DRAW_POINTS -}; +}}; // GX primitive -> RenderState primitive, using primitive restart -constexpr std::array<PrimitiveType, 8> primitive_from_gx_pr = { +constexpr std::array<PrimitiveType, 8> primitive_from_gx_pr{{ PrimitiveType::TriangleStrip, // GX_DRAW_QUADS PrimitiveType::TriangleStrip, // GX_DRAW_QUADS_2 PrimitiveType::TriangleStrip, // GX_DRAW_TRIANGLES @@ -56,7 +56,7 @@ constexpr std::array<PrimitiveType, 8> primitive_from_gx_pr = { PrimitiveType::Lines, // GX_DRAW_LINES PrimitiveType::Lines, // GX_DRAW_LINE_STRIP PrimitiveType::Points, // GX_DRAW_POINTS -}; +}}; // Due to the BT.601 standard which the GameCube is based on being a compromise // between PAL and NTSC, neither standard gets square pixels. They are each off |
