mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 09:08:53 +00:00
add braces to mat initializer
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
#include "cglm-mat-simd-avx.h"
|
||||
#include <assert.h>
|
||||
|
||||
#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_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}}
|
||||
|
||||
/* for C only */
|
||||
#define GLM_MAT4_IDENTITY (mat4)GLM_MAT4_IDENTITY_INIT
|
||||
|
Reference in New Issue
Block a user