Skip to content

Commit f11ade6

Browse files
committed
Fixed argument overriding mistake
1 parent 4587954 commit f11ade6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ core::smart_refctd_ptr<ICPUShader> CHLSLCompiler::compileToSPIRV(const char* cod
333333
std::wstring targetProfile(SHADER_MODEL_PROFILE);
334334

335335
std::vector<std::wstring> arguments = {};
336-
if (dxc_compile_flags.size() || hlslOptions.dxcOptions.size()) { // #pragma dxc_compile_flags takes priority
336+
if (dxc_compile_flags.size()) { // #pragma dxc_compile_flags takes priority
337337
populate_arguments_with_type_conversion(arguments, dxc_compile_flags, logger);
338338
}
339339
else if (hlslOptions.dxcOptions.size()) { // second in order of priority is command line arguments

0 commit comments

Comments
 (0)