From 8c8feb83e04e757edbb4d1199a7d088d59852140 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 25 Dec 2013 12:47:39 -0500 Subject: [PATCH] WinRT: made d3d11-spawned error messages trickle down Some error messages had the potential to be overwritten/obscured. --- src/render/direct3d11/SDL_render_d3d11.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp index ed3b9316d..109e71e3e 100644 --- a/src/render/direct3d11/SDL_render_d3d11.cpp +++ b/src/render/direct3d11/SDL_render_d3d11.cpp @@ -911,7 +911,7 @@ D3D11_UpdateForWindowSizeChange(SDL_Renderer * renderer) data->d3dContext->Flush(); result = D3D11_CreateWindowSizeDependentResources(renderer); if (FAILED(result)) { - WIN_SetErrorFromHRESULT(__FUNCTION__, result); + /* D3D11_CreateWindowSizeDependentResources will set the SDL error */ return result; } } @@ -932,13 +932,13 @@ D3D11_HandleDeviceLost(SDL_Renderer * renderer) result = D3D11_CreateDeviceResources(renderer); if (FAILED(result)) { - WIN_SetErrorFromHRESULT(__FUNCTION__, result); + /* D3D11_CreateDeviceResources will set the SDL error */ return result; } result = D3D11_UpdateForWindowSizeChange(renderer); if (FAILED(result)) { - WIN_SetErrorFromHRESULT(__FUNCTION__, result); + /* D3D11_UpdateForWindowSizeChange will set the SDL error */ return result; } @@ -1946,7 +1946,7 @@ D3D11_RenderPresent(SDL_Renderer * renderer) { hr = D3D11_HandleDeviceLost(renderer); if (FAILED(hr)) { - WIN_SetErrorFromHRESULT(__FUNCTION__, hr); + /* D3D11_HandleDeviceLost will set the SDL error */ } } else