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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-02 17:08:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-02 17:08:26 +0300
commit72e2a0cfb6f8e4d21b33982bbd572f10c20e947c (patch)
treee850c2de5b3068be3b0822d27348b632c901ca41 /source/blender/python/gpu/gpu_py_api.c
parentd07bc44a96ce6838cd25edca61127021fbebe4d1 (diff)
Cleanup: py-gpu error checks
Move gpu initialization checks to the start of each function instead of mixing with argument parsing.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_api.c')
-rw-r--r--source/blender/python/gpu/gpu_py_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c
index f237561246a..7e999bdcc2d 100644
--- a/source/blender/python/gpu/gpu_py_api.c
+++ b/source/blender/python/gpu/gpu_py_api.c
@@ -49,7 +49,7 @@
/** \name Utils to invalidate functions
* \{ */
-bool bpygpu_is_initialized(void)
+bool bpygpu_is_initialized_or_error(void)
{
if (!GPU_is_initialized()) {
PyErr_SetString(