diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-06 07:15:15 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-06 07:15:15 +0300 |
commit | 495a7128cb230a26bc72cb735e33be5324bf3baa (patch) | |
tree | 6cee7ac416017617b102c56e8747ef8ee01436e3 /source/blender/python/generic/bgl.c | |
parent | 0f5533441390d049d2b85e86abdd57b5a874e530 (diff) |
Cleanup: use the naming convention in py_capi_utils
And use inline functions instead of preprocessor directives.
Diffstat (limited to 'source/blender/python/generic/bgl.c')
-rw-r--r-- | source/blender/python/generic/bgl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 58bfea5fab8..a89525d942f 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -480,14 +480,14 @@ int BGL_typeSize(int type) static int gl_buffer_type_from_py_buffer(Py_buffer *pybuffer) { - const char format = FORMAT_STR_GET(pybuffer->format); + const char format = PyC_Formatstr_get(pybuffer->format); Py_ssize_t itemsize = pybuffer->itemsize; - if (FORMAT_STR_IS_FLOAT(format)) { + if (PyC_Formatstr_is_float(format)) { if (itemsize == 4) return GL_FLOAT; if (itemsize == 8) return GL_DOUBLE; } - if (FORMAT_STR_IS_BYTE(format) || FORMAT_STR_IS_INT(format)) { + if (PyC_Formatstr_is_byte(format) || PyC_Formatstr_is_int(format)) { if (itemsize == 1) return GL_BYTE; if (itemsize == 2) return GL_SHORT; if (itemsize == 4) return GL_INT; |