Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-08-04 05:43:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-04 05:43:10 +0400
commita90e49e40a44f606c08dfc460f4e0243702c1bdf (patch)
tree8b1fad72e24253791253f0376546fa6f1e48e150 /source/blender/editors/include/BIF_gl.h
parenta039f2bfc468ae293b1aa3643419f91c1723f5c9 (diff)
Tweaks to macros
Diffstat (limited to 'source/blender/editors/include/BIF_gl.h')
-rw-r--r--source/blender/editors/include/BIF_gl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/BIF_gl.h b/source/blender/editors/include/BIF_gl.h
index 4258bbcd359..9fa603966b6 100644
--- a/source/blender/editors/include/BIF_gl.h
+++ b/source/blender/editors/include/BIF_gl.h
@@ -61,14 +61,14 @@ void cpack(unsigned int x);
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
# define glMultMatrixf(x) \
- glMultMatrixf(_Generic(x, \
+ glMultMatrixf(_Generic((x), \
float *: (float *)(x), \
float (*)[4]: (float *)(x), \
const float *: (float *)(x), \
const float (*)[4]: (float *)(x)) \
)
# define glLoadMatrixf(x) \
- glLoadMatrixf(_Generic(x, \
+ glLoadMatrixf(_Generic((x), \
float *: (float *)(x), \
float (*)[4]: (float *)(x)) \
)