Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/generic/bgl.c
| Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | if (PyC_StructFmt_type_is_byte(format) || PyC_StructFmt_type_is_int_any(format)) { | ||||
| if (itemsize == 4) { | if (itemsize == 4) { | ||||
| return GL_INT; | return GL_INT; | ||||
| } | } | ||||
| } | } | ||||
| return -1; /* UNKNOWN */ | return -1; /* UNKNOWN */ | ||||
| } | } | ||||
| static bool compare_dimensions(int ndim, int *dim1, Py_ssize_t *dim2) | static bool compare_dimensions(int ndim, const int *dim1, const Py_ssize_t *dim2) | ||||
| { | { | ||||
| for (int i = 0; i < ndim; i++) { | for (int i = 0; i < ndim; i++) { | ||||
| if (dim1[i] != dim2[i]) { | if (dim1[i] != dim2[i]) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,129 Lines • Show Last 20 Lines | |||||