diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-09-20 21:21:59 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-09-20 21:21:59 +0300 |
commit | 9fb9604c1929a224254ba08975e4d250880e0edf (patch) | |
tree | 6c2c6bbcfc44523d63087bb7a762ea7faaca5599 /source/blender/python/gpu/gpu_py_shader.h | |
parent | d0eed5e50a80ef4df9ecb14772c87d4ede11e621 (diff) |
gpu.shader module: Do not free builtin shaders.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.h')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.h b/source/blender/python/gpu/gpu_py_shader.h index d9457cd9b72..4460fb1ccc7 100644 --- a/source/blender/python/gpu/gpu_py_shader.h +++ b/source/blender/python/gpu/gpu_py_shader.h @@ -32,9 +32,10 @@ extern PyTypeObject BPyGPUShader_Type; typedef struct BPyGPUShader { PyObject_VAR_HEAD struct GPUShader *shader; + bool is_builtin; } BPyGPUShader; -PyObject *BPyGPUShader_CreatePyObject(struct GPUShader *shader); +PyObject *BPyGPUShader_CreatePyObject(struct GPUShader *shader, bool is_builtin); PyObject *BPyInit_gpu_shader(void); PyObject *BPyInit_gpu_shader_builtin(void); |