Skip to content

Commit 0fe462f

Browse files
correct a typoi in -Fc fallback
1 parent 9212114 commit 0fe462f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/nsc/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ShaderCompiler final : public system::IApplicationFramework
5555
}
5656

5757
auto output_flag_pos = std::find(m_arguments.begin(), m_arguments.end(), "-Fo");
58-
if (output_flag_pos != m_arguments.end())
58+
if (output_flag_pos == m_arguments.end())
5959
output_flag_pos = std::find(m_arguments.begin(), m_arguments.end(), "-Fc");
6060

6161
if (output_flag_pos == m_arguments.end()) {

0 commit comments

Comments
 (0)