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:
Diffstat (limited to 'source/blender/python/generic/bgl.c')
-rw-r--r--source/blender/python/generic/bgl.c6
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;