mirror of https://github.com/encounter/SDL.git
WinRT: made d3d11-spawned error messages trickle down
Some error messages had the potential to be overwritten/obscured.
This commit is contained in:
parent
5fba7db23c
commit
8c8feb83e0
|
@ -911,7 +911,7 @@ D3D11_UpdateForWindowSizeChange(SDL_Renderer * renderer)
|
||||||
data->d3dContext->Flush();
|
data->d3dContext->Flush();
|
||||||
result = D3D11_CreateWindowSizeDependentResources(renderer);
|
result = D3D11_CreateWindowSizeDependentResources(renderer);
|
||||||
if (FAILED(result)) {
|
if (FAILED(result)) {
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
|
/* D3D11_CreateWindowSizeDependentResources will set the SDL error */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -932,13 +932,13 @@ D3D11_HandleDeviceLost(SDL_Renderer * renderer)
|
||||||
|
|
||||||
result = D3D11_CreateDeviceResources(renderer);
|
result = D3D11_CreateDeviceResources(renderer);
|
||||||
if (FAILED(result)) {
|
if (FAILED(result)) {
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
|
/* D3D11_CreateDeviceResources will set the SDL error */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = D3D11_UpdateForWindowSizeChange(renderer);
|
result = D3D11_UpdateForWindowSizeChange(renderer);
|
||||||
if (FAILED(result)) {
|
if (FAILED(result)) {
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
|
/* D3D11_UpdateForWindowSizeChange will set the SDL error */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1946,7 +1946,7 @@ D3D11_RenderPresent(SDL_Renderer * renderer)
|
||||||
{
|
{
|
||||||
hr = D3D11_HandleDeviceLost(renderer);
|
hr = D3D11_HandleDeviceLost(renderer);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__, hr);
|
/* D3D11_HandleDeviceLost will set the SDL error */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue