[Bf-blender-cvs] [b0b83c0db41] blender2.8: Draw manager: Fix initialization of static struct

Sergey Sharybin noreply at git.blender.org
Tue Jun 13 12:21:30 CEST 2017


Commit: b0b83c0db41278691b8dd5fcdffc97a84ae97223
Author: Sergey Sharybin
Date:   Tue Jun 13 12:20:20 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBb0b83c0db41278691b8dd5fcdffc97a84ae97223

Draw manager: Fix initialization of static struct

It's first member is a multi-dimensional array, so proper way to initialize that
is to use multiple levels of braces.

===================================================================

M	source/blender/draw/intern/draw_manager.c

===================================================================

diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 5cd9dffc1db..77206a256f2 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -307,7 +307,7 @@ static struct DRWGlobalState {
 static struct DRWMatrixOveride {
 	float mat[6][4][4];
 	bool override[6];
-} viewport_matrix_override = {0};
+} viewport_matrix_override = {{{{0}}}};
 
 ListBase DRW_engines = {NULL, NULL};




More information about the Bf-blender-cvs mailing list