[Bf-blender-cvs] [1804a6d040d] master: GPUState: Fix compilation error on MSVC

Clément Foucault noreply at git.blender.org
Wed Jul 29 15:55:05 CEST 2020


Commit: 1804a6d040d2e0ababe546d1ba5d2ccb85c55903
Author: Clément Foucault
Date:   Wed Jul 29 15:52:33 2020 +0200
Branches: master
https://developer.blender.org/rB1804a6d040d2e0ababe546d1ba5d2ccb85c55903

GPUState: Fix compilation error on MSVC

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

M	source/blender/gpu/intern/gpu_state.cc

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

diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc
index fc5eb5a87e3..d52da70be42 100644
--- a/source/blender/gpu/intern/gpu_state.cc
+++ b/source/blender/gpu/intern/gpu_state.cc
@@ -300,7 +300,8 @@ typedef struct {
 } GPUAttrStack;
 
 static GPUAttrStack state = {
-    .top = 0,
+    {},
+    0,
 };
 
 #define AttrStack state



More information about the Bf-blender-cvs mailing list