diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-04-30 17:20:39 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-04-30 17:20:39 +0300 |
commit | 2bd9a28ff8d7a7bcb5481b8f9e029959b8b055e8 (patch) | |
tree | 769b76c96d80d987e16f80bb307fa4cf87b3a5bb /source/blender/gpu/intern/gpu_framebuffer.cc | |
parent | a711aa5b3c715da29546d860f4fde24c27e34593 (diff) |
Cleanup: Rename `#if GPU_USE_PY_REFERENCES` to `#ifndef GPU_NO_USE_PY_REFERENCES`
This is safer for incremental build.
And there was already a macro `GPU_USE_PY_REFERENCES` used elsewhere.
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc index 487835a9d35..1293cc0953d 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.cc +++ b/source/blender/gpu/intern/gpu_framebuffer.cc @@ -72,7 +72,7 @@ FrameBuffer::~FrameBuffer() } } -#if USE_PY_REFERENCES +#ifndef GPU_NO_USE_PY_REFERENCES if (this->py_ref) { *this->py_ref = nullptr; } @@ -479,7 +479,7 @@ void GPU_framebuffer_recursive_downsample(GPUFrameBuffer *gpu_fb, unwrap(gpu_fb)->recursive_downsample(max_lvl, callback, userData); } -#if USE_PY_REFERENCES +#ifndef GPU_NO_USE_PY_REFERENCES void **GPU_framebuffer_py_reference_get(GPUFrameBuffer *gpu_fb) { return unwrap(gpu_fb)->py_ref; |