summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texcompress_etc.c3
1 files changed, 2 insertions, 1 deletions
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);