Skip to content

Commit

Permalink
ValidateGraphicsPipelineCreateInfo: print warning instead of error if…
Browse files Browse the repository at this point in the history
… unused RTV format is not UNKNOWN
  • Loading branch information
TheMostDiligent committed Aug 23, 2023
1 parent 3bbd476 commit 5db6a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngine/src/PipelineStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ void ValidateGraphicsPipelineCreateInfo(const GraphicsPipelineStateCreateInfo& C
auto RTVFmt = GraphicsPipeline.RTVFormats[rt];
if (RTVFmt != TEX_FORMAT_UNKNOWN)
{
LOG_ERROR_MESSAGE("Render target format (", GetTextureFormatAttribs(RTVFmt).Name, ") of unused slot ", rt,
" must be set to TEX_FORMAT_UNKNOWN.");
LOG_WARNING_MESSAGE("Render target format (", GetTextureFormatAttribs(RTVFmt).Name, ") of unused slot ", rt,
" must be set to TEX_FORMAT_UNKNOWN.");
}
}

Expand Down

0 comments on commit 5db6a60

Please sign in to comment.