mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Expand allowable formats for color attachments.
Don't assert on color formats which can be cleared with a
floating-point clear value.
So far, these are { unorm } x { r, rg, rgba, bgra }.
Fix linter error when no files to check.
This commit is contained in:
committed by
Corentin Wallez
parent
d0771f8dd5
commit
6d90e01858
@@ -24,7 +24,7 @@ files_to_check=$(echo $files_to_check | tr '\n' ' ')
|
||||
|
||||
# Run git-clang-format, check if it formatted anything
|
||||
format_output=$(scripts/git-clang-format --binary $1 --commit $base_commit --diff --style=file $files_to_check)
|
||||
if [ "$format_output" == "clang-format did not modify any files" ] ; then
|
||||
if [ "$format_output" == "clang-format did not modify any files" ] || [ "format_output" == "no modified files to format" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user