[PATCH] d3d10: Remove superfluous TRUE : FALSE conditional expression
Michael Stefaniuc
mstefani at winehq.org
Wed Apr 15 17:08:29 CDT 2020
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/d3d10/effect.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 04376efe9c..86ef50aac0 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -5337,7 +5337,7 @@ static void write_matrix_to_buffer(struct d3d10_effect_variable *variable, void
{
unsigned int col_count = !transpose ? variable->type->column_count : variable->type->row_count;
unsigned int row_count = !transpose ? variable->type->row_count : variable->type->column_count;
- BOOL major = variable->type->type_class == D3D10_SVC_MATRIX_COLUMNS ? TRUE : FALSE;
+ BOOL major = variable->type->type_class == D3D10_SVC_MATRIX_COLUMNS;
float *dst = dst_void;
unsigned int row, col;
@@ -5415,7 +5415,7 @@ static void read_matrix_from_buffer(struct d3d10_effect_variable *variable, void
{
unsigned int col_count = !transpose ? variable->type->column_count : variable->type->row_count;
unsigned int row_count = !transpose ? variable->type->row_count : variable->type->column_count;
- BOOL major = variable->type->type_class == D3D10_SVC_MATRIX_COLUMNS ? TRUE : FALSE;
+ BOOL major = variable->type->type_class == D3D10_SVC_MATRIX_COLUMNS;
float *src = src_void;
unsigned int row, col;
--
2.25.2
More information about the wine-devel
mailing list