Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/gpu/gpu_py_offscreen.c
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| #include "../mathutils/mathutils.h" | #include "../mathutils/mathutils.h" | ||||
| #include "../generic/py_capi_utils.h" | #include "../generic/py_capi_utils.h" | ||||
| #include "gpu_py_api.h" | #include "gpu_py_api.h" | ||||
| #include "gpu_py_offscreen.h" /* own include */ | #include "gpu_py_offscreen.h" /* own include */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name GPUOffScreen Common Utilities | /** \name GPUOffScreen Common Utilities | ||||
| * \{ */ | * \{ */ | ||||
| static int bpygpu_offscreen_valid_check(BPyGPUOffScreen *bpygpu_ofs) | static int bpygpu_offscreen_valid_check(BPyGPUOffScreen *bpygpu_ofs) | ||||
| { | { | ||||
| if (UNLIKELY(bpygpu_ofs->ofs == NULL)) { | if (UNLIKELY(bpygpu_ofs->ofs == NULL)) { | ||||
| PyErr_SetString(PyExc_ReferenceError, "GPU offscreen was freed, no further access is valid"); | PyErr_SetString(PyExc_ReferenceError, "GPU offscreen was freed, no further access is valid"); | ||||
| return -1; | return -1; | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||