Paul Gofman : ddraw/tests: Test specular lighting with zero shininess in ddraw2.

Alexandre Julliard julliard at winehq.org
Fri Mar 29 16:27:57 CDT 2019


Module: wine
Branch: master
Commit: d18f051ac49fa6d304bb189833eaae9873f1976d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d18f051ac49fa6d304bb189833eaae9873f1976d

Author: Paul Gofman <gofmanp at gmail.com>
Date:   Fri Mar 29 13:56:41 2019 +0300

ddraw/tests: Test specular lighting with zero shininess in ddraw2.

Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ddraw/tests/ddraw2.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/dlls/ddraw/tests/ddraw2.c b/dlls/ddraw/tests/ddraw2.c
index 4fbb6f0..4ae04d1 100644
--- a/dlls/ddraw/tests/ddraw2.c
+++ b/dlls/ddraw/tests/ddraw2.c
@@ -7373,25 +7373,25 @@ static void test_specular_lighting(void)
         {320, 360, 0x002c2c2c},
         {480, 360, 0x006e6e6e},
     },
-    expected_point_side[] =
+    expected_point_far[] =
     {
         {160, 120, 0x00000000},
         {320, 120, 0x00000000},
         {480, 120, 0x00000000},
         {160, 240, 0x00000000},
-        {320, 240, 0x00000000},
+        {320, 240, 0x00ffffff},
         {480, 240, 0x00000000},
         {160, 360, 0x00000000},
         {320, 360, 0x00000000},
         {480, 360, 0x00000000},
     },
-    expected_point_far[] =
+    expected_zero[] =
     {
         {160, 120, 0x00000000},
         {320, 120, 0x00000000},
         {480, 120, 0x00000000},
         {160, 240, 0x00000000},
-        {320, 240, 0x00ffffff},
+        {320, 240, 0x00000000},
         {480, 240, 0x00000000},
         {160, 360, 0x00000000},
         {320, 360, 0x00000000},
@@ -7410,8 +7410,13 @@ static void test_specular_lighting(void)
         {&point, 30.0f, expected_point_local, ARRAY_SIZE(expected_point_local)},
         {&spot, 30.0f, expected_spot_local, ARRAY_SIZE(expected_spot_local)},
         {&parallelpoint, 30.0f, expected_parallelpoint, ARRAY_SIZE(expected_parallelpoint)},
-        {&point_side, 0.0f, expected_point_side, ARRAY_SIZE(expected_point_side)},
+        {&point_side, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
         {&point_far, 1.0f, expected_point_far, ARRAY_SIZE(expected_point_far)},
+        {&directional, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
+        {&point, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
+        {&spot, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
+        {&parallelpoint, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
+        {&point_far, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
     };
     IDirect3D2 *d3d;
     IDirect3DDevice2 *device;




More information about the wine-cvs mailing list