From 1845f0ee8b33698ddd48c22000004ad4084a77ab Mon Sep 17 00:00:00 2001 From: Lazydodo Date: Wed, 14 Aug 2019 12:52:17 -0600 Subject: [PATCH] Cleanup: Fix build error with MSVC C99 style initializers are C++20 feature and should not be used. Reported by @deadpin on chat. --- source/blender/gpu/GPU_vertex_format.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/blender/gpu/GPU_vertex_format.h b/source/blender/gpu/GPU_vertex_format.h index dc60c52122c..fc468436499 100644 --- a/source/blender/gpu/GPU_vertex_format.h +++ b/source/blender/gpu/GPU_vertex_format.h @@ -164,9 +164,9 @@ BLI_INLINE int gpu_convert_i16_to_i10(short x) BLI_INLINE GPUPackedNormal GPU_normal_convert_i10_v3(const float data[3]) { GPUPackedNormal n = { - .x = gpu_convert_normalized_f32_to_i10(data[0]), - .y = gpu_convert_normalized_f32_to_i10(data[1]), - .z = gpu_convert_normalized_f32_to_i10(data[2]), + gpu_convert_normalized_f32_to_i10(data[0]), + gpu_convert_normalized_f32_to_i10(data[1]), + gpu_convert_normalized_f32_to_i10(data[2]), }; return n; } @@ -174,9 +174,9 @@ BLI_INLINE GPUPackedNormal GPU_normal_convert_i10_v3(const float data[3]) BLI_INLINE GPUPackedNormal GPU_normal_convert_i10_s3(const short data[3]) { GPUPackedNormal n = { - .x = gpu_convert_i16_to_i10(data[0]), - .y = gpu_convert_i16_to_i10(data[1]), - .z = gpu_convert_i16_to_i10(data[2]), + gpu_convert_i16_to_i10(data[0]), + gpu_convert_i16_to_i10(data[1]), + gpu_convert_i16_to_i10(data[2]), }; return n; }