diff options
author | Didier Raboud <odyx@debian.org> | 2014-07-02 11:33:47 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2014-07-02 11:33:47 +0200 |
commit | 2e136acd34c45e5e6d105cabf91c67e5865c38fe (patch) | |
tree | 8561603160cce0b41ba31250539a22d37a2951de /test/envs/opengl | |
parent | 562be6fe765d7742f7c38fbd82f8cc26369e238b (diff) | |
parent | d9fee8b2adad613cf8c10d153cd5cd7b261b7863 (diff) | |
download | colobot-2e136acd34c45e5e6d105cabf91c67e5865c38fe.tar.gz colobot-2e136acd34c45e5e6d105cabf91c67e5865c38fe.tar.bz2 colobot-2e136acd34c45e5e6d105cabf91c67e5865c38fe.zip |
Merge tag 'colobot-gold-0.1.3-alpha' into debian
Diffstat (limited to 'test/envs/opengl')
-rw-r--r-- | test/envs/opengl/light_test.cpp | 4 | ||||
-rw-r--r-- | test/envs/opengl/transform_test.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/envs/opengl/light_test.cpp b/test/envs/opengl/light_test.cpp index 227ca2a..5c5af7c 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] = {}; 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] = {}; quad[0].coord = Math::Vector(-1.0f, -1.0f, 0.0f); quad[1].coord = Math::Vector( 1.0f, -1.0f, 0.0f); diff --git a/test/envs/opengl/transform_test.cpp b/test/envs/opengl/transform_test.cpp index 58d8e9e..99ec9f0 100644 --- a/test/envs/opengl/transform_test.cpp +++ b/test/envs/opengl/transform_test.cpp @@ -73,7 +73,7 @@ void Render(Gfx::CGLDevice *device) worldMat.LoadIdentity(); device->SetTransform(Gfx::TRANSFORM_WORLD, worldMat); - Gfx::VertexCol line[2] = { Gfx::VertexCol() }; + Gfx::VertexCol line[2] = {}; for (int x = -40; x <= 40; ++x) { @@ -98,7 +98,7 @@ void Render(Gfx::CGLDevice *device) } - Gfx::VertexCol quad[6] = { Gfx::VertexCol() }; + Gfx::VertexCol quad[6] = {}; for (int i = 0; i < 6; ++i) quad[i].color = Gfx::Color(1.0f, 1.0f, 0.0f); |