diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2014-06-24 17:38:28 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2014-06-24 17:38:28 +0200 |
commit | 52cf9e2815688481f689e03e67c5fc983ed1351b (patch) | |
tree | 4518f590e3e5d0435265143712f36e8ec4d2d713 /test/envs/opengl/light_test.cpp | |
parent | 99cd015dd89f0928246d1178c5641ebe325fe997 (diff) | |
download | colobot-52cf9e2815688481f689e03e67c5fc983ed1351b.tar.gz colobot-52cf9e2815688481f689e03e67c5fc983ed1351b.tar.bz2 colobot-52cf9e2815688481f689e03e67c5fc983ed1351b.zip |
Fix test compilation
Diffstat (limited to 'test/envs/opengl/light_test.cpp')
-rw-r--r-- | test/envs/opengl/light_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/envs/opengl/light_test.cpp b/test/envs/opengl/light_test.cpp index 227ca2a..1a52084 100644 --- a/test/envs/opengl/light_test.cpp +++ b/test/envs/opengl/light_test.cpp @@ -78,7 +78,7 @@ void Render(Gfx::CGLDevice *device) worldMat.LoadIdentity(); device->SetTransform(Gfx::TRANSFORM_WORLD, worldMat); - Gfx::VertexCol line[2] = { Gfx::VertexCol() }; + Gfx::VertexCol line[2] = Gfx::VertexCol{ Gfx::VertexCol() }; for (int x = -40; x <= 40; ++x) { @@ -103,7 +103,7 @@ void Render(Gfx::CGLDevice *device) } - Gfx::VertexCol quad[6] = { Gfx::VertexCol() }; + Gfx::VertexCol quad[6] = Gfx::VertexCol{ Gfx::VertexCol() }; quad[0].coord = Math::Vector(-1.0f, -1.0f, 0.0f); quad[1].coord = Math::Vector( 1.0f, -1.0f, 0.0f); |