File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Extensions/_3rdLib/D3DUtilities Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments