Cleanup: warnings
This commit is contained in:
@@ -74,6 +74,8 @@ int GPU_indexbuf_primitive_len(GPUPrimType prim_type)
|
|||||||
return 3;
|
return 3;
|
||||||
case GPU_PRIM_LINES_ADJ:
|
case GPU_PRIM_LINES_ADJ:
|
||||||
return 4;
|
return 4;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
#if TRUST_NO_ONE
|
#if TRUST_NO_ONE
|
||||||
assert(false);
|
assert(false);
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args,
|
|||||||
index_len *= pybuffer.shape[1];
|
index_len *= pybuffer.shape[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The `vertex_len` parameter is only used for asserts in the Debug build.
|
/* The `vertex_len` parameter is only used for asserts in the Debug build. */
|
||||||
/* Not very useful in python since scripts are often tested in Release build.
|
/* Not very useful in python since scripts are often tested in Release build. */
|
||||||
/* Use `INT_MAX` instead of the actual number of vertices. */
|
/* Use `INT_MAX` instead of the actual number of vertices. */
|
||||||
GPU_indexbuf_init(
|
GPU_indexbuf_init(
|
||||||
&builder, params.type_id, index_len, INT_MAX);
|
&builder, params.type_id, index_len, INT_MAX);
|
||||||
@@ -144,8 +144,8 @@ static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args,
|
|||||||
|
|
||||||
index_len = seq_len * verts_per_prim;
|
index_len = seq_len * verts_per_prim;
|
||||||
|
|
||||||
/* The `vertex_len` parameter is only used for asserts in the Debug build.
|
/* The `vertex_len` parameter is only used for asserts in the Debug build. */
|
||||||
/* Not very useful in python since scripts are often tested in Release build.
|
/* Not very useful in python since scripts are often tested in Release build. */
|
||||||
/* Use `INT_MAX` instead of the actual number of vertices. */
|
/* Use `INT_MAX` instead of the actual number of vertices. */
|
||||||
GPU_indexbuf_init(
|
GPU_indexbuf_init(
|
||||||
&builder, params.type_id, index_len, INT_MAX);
|
&builder, params.type_id, index_len, INT_MAX);
|
||||||
|
|||||||
Reference in New Issue
Block a user