Fix gross errors in previous commit
This commit is contained in:
@@ -654,13 +654,6 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer
|
|||||||
UNUSED_VARS(shared_reference);
|
UNUSED_VARS(shared_reference);
|
||||||
#endif
|
#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
|
#if GPU_USE_PY_REFERENCES
|
||||||
self->shared_reference = shared_reference;
|
self->shared_reference = shared_reference;
|
||||||
|
|
||||||
|
|||||||
@@ -274,8 +274,7 @@ static PyObject *pygpu_offscreen_texture_color_get(BPyGPUOffScreen *self, void *
|
|||||||
{
|
{
|
||||||
BPY_GPU_OFFSCREEN_CHECK_OBJ(self);
|
BPY_GPU_OFFSCREEN_CHECK_OBJ(self);
|
||||||
GPUTexture *texture = GPU_offscreen_color_texture(self->ofs);
|
GPUTexture *texture = GPU_offscreen_color_texture(self->ofs);
|
||||||
GPU_texture_ref(texture);
|
return BPyGPUTexture_CreatePyObject(texture, true);
|
||||||
return BPyGPUTexture_CreatePyObject(texture);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(
|
PyDoc_STRVAR(
|
||||||
|
|||||||
Reference in New Issue
Block a user