mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DX11: Add error checking to about any device object creation. Since we aren't handling creation errors that well right now we should at least output an error message.
Remove superfluous _WIN32 checks in DX11 and DX9. Meant to port that code over to Linux or what? :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5738 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -84,7 +84,8 @@ void FramebufferManager::Create()
|
||||
// sampler state for FramebufferManager::copyToVirtualXFB
|
||||
float border[4] = {0.f, 0.f, 0.f, 0.f};
|
||||
D3D11_SAMPLER_DESC samplerdesc = CD3D11_SAMPLER_DESC(D3D11_FILTER_MIN_MAG_MIP_LINEAR, D3D11_TEXTURE_ADDRESS_CLAMP, D3D11_TEXTURE_ADDRESS_CLAMP, D3D11_TEXTURE_ADDRESS_CLAMP, 0.f, 1, D3D11_COMPARISON_ALWAYS, border, -D3D11_FLOAT32_MAX, D3D11_FLOAT32_MAX);
|
||||
D3D::device->CreateSamplerState(&samplerdesc, ©toVirtualXFBsampler);
|
||||
hr = D3D::device->CreateSamplerState(&samplerdesc, ©toVirtualXFBsampler);
|
||||
CHECK(hr==S_OK, "Create sampler state for FramebufferManager::copyToVirtualXFB");
|
||||
D3D::SetDebugObjectName((ID3D11DeviceChild*)copytoVirtualXFBsampler, "sampler state used for FramebufferManager::copyToVirtualXFB");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user