Skip to content

Commit 05de776

Browse files
committed
Update ShaderCompiler.h
1 parent cd2150f commit 05de776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extensions/_3rdLib/D3DUtilities/ShaderCompiler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct ShaderCompiler {
146146
nullptr,
147147
&pixelShader))) {
148148
errorMsg = "D3D11: Failed to compile pixel shader\n";
149-
return std::make_tuple(nullptr, nullptr);
149+
return GetNullBundle<PixelShaderBundle>();
150150
}
151151

152152
return std::make_tuple(pixelShaderBlob, pixelShader);
@@ -158,7 +158,7 @@ struct ShaderCompiler {
158158
if (!CompileShader(pData, sz,
159159
pEntryPoint, std::format("ps_{}", pTarget).c_str(),
160160
pixelShaderBlob)) {
161-
return std::make_tuple(nullptr, nullptr);
161+
return GetNullBundle<PixelShaderBundle>();
162162
}
163163

164164
return CreatePixelShader(pixelShaderBlob);
@@ -170,7 +170,7 @@ struct ShaderCompiler {
170170
if (!CompileShader(pFileName,
171171
pEntryPoint, std::format("ps_{}", pTarget).c_str(),
172172
pixelShaderBlob)) {
173-
return std::make_tuple(nullptr, nullptr);
173+
return GetNullBundle<PixelShaderBundle>();
174174
}
175175

176176
return CreatePixelShader(pixelShaderBlob);

0 commit comments

Comments
 (0)