Michael Stefaniuc : d3d10: Remove superfluous TRUE : FALSE conditional expression.
Alexandre Julliard
julliard at winehq.org
Fri Apr 17 16:12:54 CDT 2020
Module: wine
Branch: master
Commit: 4ffc5e66ea31e8b831513bc8e462c876cdfdcb38
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4ffc5e66ea31e8b831513bc8e462c876cdfdcb38
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Apr 16 00:08:29 2020 +0200
d3d10: Remove superfluous TRUE : FALSE conditional expression.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard 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;
More information about the wine-cvs
mailing list