Merge pull request #957 from LukeUsher/pixel-shader-switchover

Log Pixel Shader errors
This commit is contained in:
Luke Usher 2018-03-01 12:09:51 +00:00 committed by GitHub
commit fb5436e47f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3981,7 +3981,7 @@ static const
if (pShader == nullptr)
{
EmuWarning("Could not create pixel shader");
// TODO EmuWarning(string(AnsiString(PAnsiChar(LPD3DXBUFFER(pErrors).GetBufferPointer())))); // Dxbx addition
EmuWarning(std::string((char*)pErrors->GetBufferPointer(), pErrors->GetBufferSize()).c_str());
hRet = D3DXAssembleShader(
szDiffusePixelShader,