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:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-04-30 17:00:57 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-04-30 17:00:57 +0300
commita35d33d5204515fac8e9b3f3f75094f5580dc64e (patch)
tree9932ed7e4fbc84ea38476df9a740fff3868de397 /source/blender/python/gpu/gpu_py_offscreen.c
parentc3a980436da23a9fbeb4bd4abd1affb481c39bf9 (diff)
Fix gross errors in previous commit
Diffstat (limited to 'source/blender/python/gpu/gpu_py_offscreen.c')
-rw-r--r--source/blender/python/gpu/gpu_py_offscreen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c
index 8359e5282fe..28bd24a6877 100644
--- a/source/blender/python/gpu/gpu_py_offscreen.c
+++ b/source/blender/python/gpu/gpu_py_offscreen.c
@@ -274,8 +274,7 @@ static PyObject *pygpu_offscreen_texture_color_get(BPyGPUOffScreen *self, void *
{
BPY_GPU_OFFSCREEN_CHECK_OBJ(self);
GPUTexture *texture = GPU_offscreen_color_texture(self->ofs);
- GPU_texture_ref(texture);
- return BPyGPUTexture_CreatePyObject(texture);
+ return BPyGPUTexture_CreatePyObject(texture, true);
}
PyDoc_STRVAR(