diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index b5f4d26220a..537d8ce3042 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -83,16 +83,16 @@ static PyObject *bpygpu_offscreen_new(PyTypeObject *UNUSED(self), PyObject *args BPYGPU_IS_INIT_OR_ERROR_OBJ; GPUOffScreen *ofs; - int width, height, samples = 0; + int width, height, high_bitdepth=0, samples = 0; char err_out[256]; - static const char *_keywords[] = {"width", "height", "samples", NULL}; - static _PyArg_Parser _parser = {"ii|i:GPUOffScreen.__new__", _keywords, 0}; - if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, &width, &height, &samples)) { + static const char *_keywords[] = {"width", "height", "samples", "high_bitdepth", NULL}; + static _PyArg_Parser _parser = {"ii|ii:GPUOffScreen.__new__", _keywords, 0}; + if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, &width, &height, &samples, &high_bitdepth)) { return NULL; } - ofs = GPU_offscreen_create(width, height, samples, true, false, err_out); + ofs = GPU_offscreen_create(width, height, samples, true, high_bitdepth, err_out); if (ofs == NULL) { PyErr_Format(PyExc_RuntimeError,