GPU: colorAttachmentDescriptions should be const

The `colorAttachmentDescriptions` field of `SDL_GPUGraphicsPipelineAttachmentInfo` should be marked `const`,
similarly to the `vertexBindings` and `vertexAttributes` fields of `SDL_GPUVertexInputState`.
This commit is contained in:
Quinn X. J.
2024-09-05 17:20:27 +10:00
committed by Sam Lantinga
parent 249a74e436
commit f61d4db39a
3 changed files with 3 additions and 3 deletions

View File

@@ -1250,7 +1250,7 @@ static void D3D11_ReleaseGraphicsPipeline(
static ID3D11BlendState *D3D11_INTERNAL_FetchBlendState(
D3D11Renderer *renderer,
Uint32 numColorAttachments,
SDL_GPUColorAttachmentDescription *colorAttachments)
const SDL_GPUColorAttachmentDescription *colorAttachments)
{
ID3D11BlendState *result;
D3D11_BLEND_DESC blendDesc;