From eeff87cee3a01cbd3ca9153db531ca5b0d21f606 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 8 Dec 2012 01:02:30 +0000 Subject: [PATCH] mesa: Move declaration before statement. For MSVC's sake. --- src/mesa/main/texcompress_etc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texcompress_etc.c b/src/mesa/main/texcompress_etc.c index b98ff029a2e..73d2fa4fe0c 100644 --- a/src/mesa/main/texcompress_etc.c +++ b/src/mesa/main/texcompress_etc.c @@ -411,9 +411,10 @@ etc2_rgb8_parse_block(struct etc2_block *block, } } else if (G_plus_dG < 0 || G_plus_dG > 31){ + int base_color_1_value, base_color_2_value; + /* H mode */ block->is_h_mode = true; - int base_color_1_value, base_color_2_value; for(i = 0; i < 3; i++) { block->base_colors[0][i] = etc2_base_color1_h_mode(src, i); -- 2.30.2