Cleanup: use nullptr instead of zero
This commit is contained in:
@@ -333,7 +333,7 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject * /*self*/, PyObject *ar
|
||||
"O" /* `color_slots` */
|
||||
":GPUFrameBuffer.__new__",
|
||||
_keywords,
|
||||
0,
|
||||
nullptr,
|
||||
};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(
|
||||
args, kwds, &_parser, &depth_attachment, &color_attachements))
|
||||
@@ -429,7 +429,7 @@ static PyObject *pygpu_framebuffer_clear(BPyGPUFrameBuffer *self, PyObject *args
|
||||
"O" /* `stencil` */
|
||||
":clear",
|
||||
_keywords,
|
||||
0,
|
||||
nullptr,
|
||||
};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, &py_col, &py_depth, &py_stencil)) {
|
||||
return nullptr;
|
||||
@@ -553,7 +553,7 @@ static PyObject *pygpu_framebuffer_read_color(BPyGPUFrameBuffer *self,
|
||||
"O!" /* `data` */
|
||||
":read_color",
|
||||
_keywords,
|
||||
0,
|
||||
nullptr,
|
||||
};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(args,
|
||||
kwds,
|
||||
@@ -651,7 +651,7 @@ static PyObject *pygpu_framebuffer_read_depth(BPyGPUFrameBuffer *self,
|
||||
"O!" /* `data` */
|
||||
":read_depth",
|
||||
_keywords,
|
||||
0,
|
||||
nullptr,
|
||||
};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(
|
||||
args, kwds, &_parser, &x, &y, &w, &h, &BPyGPU_BufferType, &py_buffer))
|
||||
|
||||
Reference in New Issue
Block a user