mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 17:09:40 +00:00
add braces to mat initializer
This commit is contained in:
@@ -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