mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-24 02:29:43 +00:00
Made error handling more consistent in D3D12_RenderReadPixels()
This commit is contained in:
parent
304d425f99
commit
90262f274a
@ -2832,8 +2832,8 @@ static int D3D12_RenderReadPixels(SDL_Renderer *renderer, const SDL_Rect *rect,
|
||||
NULL,
|
||||
(void **)&textureMemory);
|
||||
if (FAILED(result)) {
|
||||
SAFE_RELEASE(readbackBuffer);
|
||||
return WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D12Resource::Map [map staging texture]"), result);
|
||||
WIN_SetErrorFromHRESULT(SDL_COMPOSE_ERROR("ID3D12Resource::Map [map staging texture]"), result);
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Copy the data into the desired buffer, converting pixels to the
|
||||
|
Loading…
Reference in New Issue
Block a user