Cleanup: quiet warning mixing int/enum

This commit is contained in:
Campbell Barton
2024-05-20 10:13:20 +10:00
parent 72627a9d84
commit db617bc07b

View File

@@ -120,8 +120,8 @@ void ShadowTileMap::debug_draw() const
{0.1f, 0.1f, 0.1f, 1.0f},
{1.0f, 1.0f, 1.0f, 1.0f},
};
float4 color =
debug_color[((projection_type == SHADOW_PROJECTION_CUBEFACE ? cubeface : level) + 9999) % 6];
float4 color = debug_color
[((projection_type == SHADOW_PROJECTION_CUBEFACE ? int(cubeface) : level) + 9999) % 6];
float4x4 persinv = winmat * viewmat;
drw_debug_matrix_as_bbox(math::invert(persinv), color);