diff options
Diffstat (limited to 'source/blender/python/gpu/gpu_py_api.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_api.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c index 7213dc59886..68f7eb9816c 100644 --- a/source/blender/python/gpu/gpu_py_api.c +++ b/source/blender/python/gpu/gpu_py_api.c @@ -30,8 +30,6 @@ #include "../generic/python_utildefines.h" -#include "GPU_init_exit.h" - #include "gpu_py_matrix.h" #include "gpu_py_select.h" #include "gpu_py_state.h" @@ -40,24 +38,6 @@ #include "gpu_py_api.h" /* own include */ /* -------------------------------------------------------------------- */ -/** \name Utils to invalidate functions - * \{ */ - -bool bpygpu_is_init_or_error(void) -{ - if (!GPU_is_init()) { - PyErr_SetString(PyExc_SystemError, - "GPU functions for drawing are not available in background mode"); - - return false; - } - - return true; -} - -/** \} */ - -/* -------------------------------------------------------------------- */ /** \name GPU Module * \{ */ |