mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 05:58:29 +00:00
Pass the real error from D3D12_CreatePipelineState() back to the application
This commit is contained in:
@@ -2571,7 +2571,8 @@ static int D3D12_SetDrawState(SDL_Renderer *renderer, const SDL_RenderCommand *c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!rendererData->currentPipelineState) {
|
if (!rendererData->currentPipelineState) {
|
||||||
return SDL_SetError("[direct3d12] Unable to create required pipeline state");
|
/* The error has been set inside D3D12_CreatePipelineState() */
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3D_CALL(rendererData->commandList, SetPipelineState, rendererData->currentPipelineState->pipelineState);
|
D3D_CALL(rendererData->commandList, SetPipelineState, rendererData->currentPipelineState->pipelineState);
|
||||||
|
Reference in New Issue
Block a user