diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:39:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:58:33 +0300 |
commit | e2e31b9baca8fa98273f029c6ca47eab662db747 (patch) | |
tree | 2da356c811a42aea0647f43c208dd8d4b1433c43 /source/blender/gpu | |
parent | edd1164575feefda103c73119a98cbd994e53141 (diff) |
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer_private.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer_private.hh b/source/blender/gpu/intern/gpu_framebuffer_private.hh index da44773039b..87f0f3823e6 100644 --- a/source/blender/gpu/intern/gpu_framebuffer_private.hh +++ b/source/blender/gpu/intern/gpu_framebuffer_private.hh @@ -54,9 +54,10 @@ typedef enum GPUAttachmentType : int { * the maximum number of COLOR attachments specified by glDrawBuffers. */ GPU_FB_MAX_ATTACHMENT, - GPU_FB_MAX_COLOR_ATTACHMENT = (GPU_FB_MAX_ATTACHMENT - GPU_FB_COLOR_ATTACHMENT0), } GPUAttachmentType; +#define GPU_FB_MAX_COLOR_ATTACHMENT (GPU_FB_MAX_ATTACHMENT - GPU_FB_COLOR_ATTACHMENT0) + inline constexpr GPUAttachmentType operator-(GPUAttachmentType a, int b) { return static_cast<GPUAttachmentType>(static_cast<int>(a) - b); |