diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-10 15:44:21 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-03-10 15:44:21 +0100 |
commit | bc859c4c597f106d40f07380bf255f180d565577 (patch) | |
tree | 177b7a904a128341f033251fd6a7011fa5644439 /test/unit/graphics | |
parent | 1f565fdf389542eb0296bf7f685716200c559538 (diff) | |
download | colobot-bc859c4c597f106d40f07380bf255f180d565577.tar.gz colobot-bc859c4c597f106d40f07380bf255f180d565577.tar.bz2 colobot-bc859c4c597f106d40f07380bf255f180d565577.zip |
VBO override option; argv parsing using getopt
* added -vbo option to override autodetection of OpenGL VBO extension
* refactored argument parsing to use getopt()
* fixed failing UTs
Diffstat (limited to 'test/unit/graphics')
-rw-r--r-- | test/unit/graphics/engine/lightman_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/graphics/engine/lightman_test.cpp b/test/unit/graphics/engine/lightman_test.cpp index b20b058..c955f0a 100644 --- a/test/unit/graphics/engine/lightman_test.cpp +++ b/test/unit/graphics/engine/lightman_test.cpp @@ -110,7 +110,7 @@ TEST_F(LightManagerUT, LightSorting_IncludeTypesAreIncluded) AddLight(2, LIGHT_PRI_LOW, true, true, Math::Vector(0.0f, 0.0f, 0.0f), ENG_OBJTYPE_TERRAIN, ENG_OBJTYPE_NULL); AddLight(3, LIGHT_PRI_LOW, true, true, Math::Vector(0.0f, 0.0f, 0.0f), ENG_OBJTYPE_QUARTZ, ENG_OBJTYPE_NULL); - std::vector<int> expectedLights = { 2, 1 }; + std::vector<int> expectedLights = { 1, 2 }; CheckLightSorting(ENG_OBJTYPE_TERRAIN, expectedLights); } @@ -124,7 +124,7 @@ TEST_F(LightManagerUT, LightSorting_ExcludeTypesAreExcluded) AddLight(2, LIGHT_PRI_LOW, true, true, Math::Vector(0.0f, 0.0f, 0.0f), ENG_OBJTYPE_NULL, ENG_OBJTYPE_TERRAIN); AddLight(3, LIGHT_PRI_LOW, true, true, Math::Vector(0.0f, 0.0f, 0.0f), ENG_OBJTYPE_NULL, ENG_OBJTYPE_QUARTZ); - std::vector<int> expectedLights = { 3, 1 }; + std::vector<int> expectedLights = { 1, 3 }; CheckLightSorting(ENG_OBJTYPE_TERRAIN, expectedLights); } |