diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-17 04:57:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-17 04:57:53 +0300 |
commit | 29c1d736c49b73f1df4c00bc4cc44aff95172b37 (patch) | |
tree | d188c90080475812de53eaad90a80d6104d323fa /source/blender/draw/engines | |
parent | 413c399ab8900ee193e474edc597ca00f4176cc0 (diff) |
Cleanup: compiler warnings, clang-tidy
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_renderbuffers.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_renderbuffers.cc b/source/blender/draw/engines/eevee_next/eevee_renderbuffers.cc index dd7da0d8f76..c18c913d797 100644 --- a/source/blender/draw/engines/eevee_next/eevee_renderbuffers.cc +++ b/source/blender/draw/engines/eevee_next/eevee_renderbuffers.cc @@ -43,10 +43,10 @@ void RenderBuffers::acquire(int2 extent) bool do_vector_render_pass = (enabled_passes & EEVEE_RENDER_PASS_VECTOR) || (inst_.motion_blur.postfx_enabled() && !inst_.is_viewport()); uint32_t max_light_color_layer = max_ii(enabled_passes & EEVEE_RENDER_PASS_DIFFUSE_LIGHT ? - RENDER_PASS_LAYER_DIFFUSE_LIGHT : + (int)RENDER_PASS_LAYER_DIFFUSE_LIGHT : -1, enabled_passes & EEVEE_RENDER_PASS_SPECULAR_LIGHT ? - RENDER_PASS_LAYER_SPECULAR_LIGHT : + (int)RENDER_PASS_LAYER_SPECULAR_LIGHT : -1) + 1; /* Only RG16F when only doing only reprojection or motion blur. */ |