cpp: fix array initializer must be an initializer list

This commit is contained in:
Recep Aslantas
2016-09-17 13:21:08 +03:00
parent 2366e3b85a
commit 146dbe4656
2 changed files with 7 additions and 5 deletions

View File

@@ -12,11 +12,13 @@
#include "cglm-mat-simd.h"
#include <assert.h>
#define GLM_MAT4_IDENTITY (mat4){1.0f, 0.0f, 0.0f, 0.0f, \
#define GLM_MAT4_IDENTITY_INIT {1.0f, 0.0f, 0.0f, 0.0f, \
0.0f, 1.0f, 0.0f, 0.0f, \
0.0f, 0.0f, 1.0f, 0.0f, \
0.0f, 0.0f, 0.0f, 1.0f}
#define GLM_MAT4_IDENTITY (mat4)GLM_MAT4_IDENTITY_INIT
#define glm_mat4_mul_impl(l, r, d) \
do { \
d[0] = l[0] * r[0] + l[1] * r[4] + l[2] * r[8] + l[3] * r[12]; \