Skip to content

Commit

Permalink
d3d12: Patched to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 26, 2023
1 parent 6783cc5 commit 5182355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/render/direct3d12/SDL_render_d3d12.c
Original file line number Diff line number Diff line change
Expand Up @@ -2590,9 +2590,9 @@ static void D3D12_DrawPrimitives(SDL_Renderer *renderer, D3D12_PRIMITIVE_TOPOLOG
static void D3D12_InvalidateCachedState(SDL_Renderer *renderer)
{
D3D12_RenderData *data = (D3D12_RenderData *)renderer->driverdata;
data->currentRenderTargetView.ptr = NULL;
data->currentShaderResource.ptr = NULL;
data->currentSampler.ptr = NULL;
data->currentRenderTargetView.ptr = 0;
data->currentShaderResource.ptr = 0;
data->currentSampler.ptr = 0;
data->cliprectDirty = SDL_TRUE;
data->viewportDirty = SDL_TRUE;
}
Expand Down

0 comments on commit 5182355

Please sign in to comment.