We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d694139 commit 04fc898Copy full SHA for 04fc898
Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2019-2023 Diligent Graphics LLC
+ * Copyright 2019-2024 Diligent Graphics LLC
3
* Copyright 2015-2019 Egor Yusov
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -197,7 +197,7 @@ class ShaderMacroHelper
197
template <>
198
inline ShaderMacroHelper& ShaderMacroHelper::AddShaderMacro(const Char* Name, const Char* Definition)
199
{
200
- return Add(ShaderMacro{Name, Definition});
+ return Add(ShaderMacro{Name, Definition != nullptr ? Definition : ""});
201
}
202
203
0 commit comments