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:
Diffstat (limited to 'source/blender/python/gpu/gpu_py_framebuffer.c')
-rw-r--r--source/blender/python/gpu/gpu_py_framebuffer.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c
index 96a7491e861..b690dbd93dd 100644
--- a/source/blender/python/gpu/gpu_py_framebuffer.c
+++ b/source/blender/python/gpu/gpu_py_framebuffer.c
@@ -654,13 +654,6 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer
UNUSED_VARS(shared_reference);
#endif
- self = PyObject_New(BPyGPUFrameBuffer, &BPyGPUFrameBuffer_Type);
- self->fb = fb;
- self->weak_reference = weak_reference;
-
- BLI_assert(GPU_framebuffer_reference_get(fb) == NULL);
- GPU_framebuffer_reference_set(fb, &self->fb);
-
#if GPU_USE_PY_REFERENCES
self->shared_reference = shared_reference;