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.
This commit is contained in:
2021-04-30 11:20:39 -03:00
parent a711aa5b3c
commit 2bd9a28ff8
10 changed files with 16 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ extern PyTypeObject BPyGPUFrameBuffer_Type;
typedef struct BPyGPUFrameBuffer {
PyObject_HEAD struct GPUFrameBuffer *fb;
#if GPU_USE_PY_REFERENCES
#ifndef GPU_NO_USE_PY_REFERENCES
bool shared_reference;
#endif
} BPyGPUFrameBuffer;