Commit 4734771f authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3dx9_36: Make NUM_ELEM a define.

parent dcb10166
...@@ -6393,7 +6393,7 @@ static BOOL weld_float16_2(void *to, void *from, FLOAT epsilon) ...@@ -6393,7 +6393,7 @@ static BOOL weld_float16_2(void *to, void *from, FLOAT epsilon)
FLOAT diff_x; FLOAT diff_x;
FLOAT diff_y; FLOAT diff_y;
FLOAT max_abs_diff; FLOAT max_abs_diff;
const UINT NUM_ELEM = 2; #define NUM_ELEM 2
FLOAT v1[NUM_ELEM]; FLOAT v1[NUM_ELEM];
FLOAT v2[NUM_ELEM]; FLOAT v2[NUM_ELEM];
...@@ -6412,6 +6412,7 @@ static BOOL weld_float16_2(void *to, void *from, FLOAT epsilon) ...@@ -6412,6 +6412,7 @@ static BOOL weld_float16_2(void *to, void *from, FLOAT epsilon)
} }
return FALSE; return FALSE;
#undef NUM_ELEM
} }
static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon) static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon)
...@@ -6423,7 +6424,7 @@ static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon) ...@@ -6423,7 +6424,7 @@ static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon)
FLOAT diff_z; FLOAT diff_z;
FLOAT diff_w; FLOAT diff_w;
FLOAT max_abs_diff; FLOAT max_abs_diff;
const UINT NUM_ELEM = 4; #define NUM_ELEM 4
FLOAT v1[NUM_ELEM]; FLOAT v1[NUM_ELEM];
FLOAT v2[NUM_ELEM]; FLOAT v2[NUM_ELEM];
...@@ -6446,6 +6447,7 @@ static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon) ...@@ -6446,6 +6447,7 @@ static BOOL weld_float16_4(void *to, void *from, FLOAT epsilon)
} }
return FALSE; return FALSE;
#undef NUM_ELEM
} }
/* Sets the vertex components to the same value if they are within epsilon. */ /* Sets the vertex components to the same value if they are within epsilon. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment