From e3aa141df680d13df98848cc91ca239ef97ed3a0 Mon Sep 17 00:00:00 2001 From: Alexey Panteleev Date: Fri, 10 May 2024 12:47:31 -0700 Subject: [PATCH] Fixed an implicit type conversion warning. --- src/common/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.cpp b/src/common/utils.cpp index c63fc61..2f1f508 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -126,7 +126,7 @@ namespace nvrhi::utils { const FormatInfo& formatInfo = getFormatInfo(att.texture->getDesc().format); commandList->clearDepthStencilTexture(att.texture, att.subresources, formatInfo.hasDepth, depth, - formatInfo.hasStencil, stencil); + formatInfo.hasStencil, uint8_t(stencil)); } }