mirror of
https://github.com/recp/cglm.git
synced 2026-11-20 02:33:10 -06:00
add braces to mat initializer
This commit is contained in:
1 parent
02c6ba5b19
commit
1b41c3d52a
1 file changed
+4
-4
+4
-4
@@ -18,10 +18,10 @@
|
|||||||
#include "cglm-mat-simd-avx.h"
|
#include "cglm-mat-simd-avx.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define GLM_MAT4_IDENTITY_INIT {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, 1.0f, 0.0f, 0.0f}, \
|
||||||
0.0f, 0.0f, 1.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, 1.0f}}
|
||||||
|
|
||||||
/* for C only */
|
/* for C only */
|
||||||
#define GLM_MAT4_IDENTITY (mat4)GLM_MAT4_IDENTITY_INIT
|
#define GLM_MAT4_IDENTITY (mat4)GLM_MAT4_IDENTITY_INIT
|
||||||
|
|||||||
Reference in new issue
Block a user