diff --git a/include/llmr/renderer/shader-line.hpp b/include/llmr/renderer/shader-line.hpp index 6d6d79b72..99984ea04 100644 --- a/include/llmr/renderer/shader-line.hpp +++ b/include/llmr/renderer/shader-line.hpp @@ -23,19 +23,19 @@ private: int32_t a_extrude = -1; // int32_t a_linesofar = -1; - std::array exmatrix = {}; + std::array exmatrix = {{}}; int32_t u_exmatrix = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; - std::array linewidth = {}; + std::array linewidth = {{}}; int32_t u_linewidth = -1; float ratio = 0; int32_t u_ratio = -1; - std::array dasharray = {}; + std::array dasharray = {{}}; int32_t u_dasharray = -1; float debug = 0; diff --git a/include/llmr/renderer/shader-linejoin.hpp b/include/llmr/renderer/shader-linejoin.hpp index 5aa30be5f..bd65b9db9 100644 --- a/include/llmr/renderer/shader-linejoin.hpp +++ b/include/llmr/renderer/shader-linejoin.hpp @@ -19,13 +19,13 @@ public: private: int32_t a_pos = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; - std::array world = {}; + std::array world = {{}}; int32_t u_world = -1; - std::array linewidth = {}; + std::array linewidth = {{}}; int32_t u_linewidth = -1; float size = 0; diff --git a/include/llmr/renderer/shader-outline.hpp b/include/llmr/renderer/shader-outline.hpp index 5d05978cc..68d056e38 100644 --- a/include/llmr/renderer/shader-outline.hpp +++ b/include/llmr/renderer/shader-outline.hpp @@ -17,10 +17,10 @@ public: private: int32_t a_pos = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; - std::array world = {}; + std::array world = {{}}; int32_t u_world = -1; }; diff --git a/include/llmr/renderer/shader-pattern.hpp b/include/llmr/renderer/shader-pattern.hpp index c26919569..d7998a7a2 100644 --- a/include/llmr/renderer/shader-pattern.hpp +++ b/include/llmr/renderer/shader-pattern.hpp @@ -21,19 +21,19 @@ public: private: int32_t a_pos = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; - std::array offset = {}; + std::array offset = {{}}; int32_t u_offset = -1; - std::array pattern_size = {}; + std::array pattern_size = {{}}; int32_t u_pattern_size = -1; - std::array pattern_tl = {}; + std::array pattern_tl = {{}}; int32_t u_pattern_tl = -1; - std::array pattern_br = {}; + std::array pattern_br = {{}}; int32_t u_pattern_br = -1; float mix = 0; diff --git a/include/llmr/renderer/shader-plain.hpp b/include/llmr/renderer/shader-plain.hpp index ae7d8d598..01e7d81d1 100644 --- a/include/llmr/renderer/shader-plain.hpp +++ b/include/llmr/renderer/shader-plain.hpp @@ -17,7 +17,7 @@ public: private: int32_t a_pos = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; }; diff --git a/include/llmr/renderer/shader-point.hpp b/include/llmr/renderer/shader-point.hpp index 1de38504c..61efaa024 100644 --- a/include/llmr/renderer/shader-point.hpp +++ b/include/llmr/renderer/shader-point.hpp @@ -23,13 +23,13 @@ private: int32_t image = -1; int32_t u_image = -1; - std::array color = {}; + std::array color = {{}}; int32_t u_color = -1; - std::array point_tl = {}; + std::array point_tl = {{}}; int32_t u_point_tl = -1; - std::array point_br = {}; + std::array point_br = {{}}; int32_t u_point_br = -1; float size = 0; diff --git a/include/llmr/renderer/shader.hpp b/include/llmr/renderer/shader.hpp index 294a5e69b..f4713c59f 100644 --- a/include/llmr/renderer/shader.hpp +++ b/include/llmr/renderer/shader.hpp @@ -20,7 +20,7 @@ private: bool compileShader(uint32_t *shader, uint32_t type, const char *source); protected: - std::array matrix = {}; + std::array matrix = {{}}; int32_t u_matrix = -1; };