Amend use of non-standard compiler syntax

This commit is contained in:
Daniel Ludwig
2024-09-06 17:34:24 +02:00
committed by Ozkan Sezer
parent 0a8bf663b7
commit 0a44ea1b0b
4 changed files with 31 additions and 5 deletions

View File

@@ -3199,7 +3199,10 @@ static SDL_GPUCommandBuffer *D3D11_AcquireCommandBuffer(
commandBuffer = D3D11_INTERNAL_GetInactiveCommandBufferFromPool(renderer);
commandBuffer->graphicsPipeline = NULL;
commandBuffer->stencilRef = 0;
commandBuffer->blendConstants = (SDL_FColor){ 1.0f, 1.0f, 1.0f, 1.0f };
commandBuffer->blendConstants.r = 1.0f;
commandBuffer->blendConstants.g = 1.0f;
commandBuffer->blendConstants.b = 1.0f;
commandBuffer->blendConstants.a = 1.0f;
commandBuffer->computePipeline = NULL;
for (i = 0; i < MAX_COLOR_TARGET_BINDINGS; i += 1) {
commandBuffer->colorTargetResolveTexture[i] = NULL;
@@ -3617,9 +3620,15 @@ static void D3D11_BeginRenderPass(
commandBuffer,
0);
SDL_FColor blendConstants;
blendConstants.r = 1.0f;
blendConstants.g = 1.0f;
blendConstants.b = 1.0f;
blendConstants.a = 1.0f;
D3D11_SetBlendConstants(
commandBuffer,
(SDL_FColor){ 1.0f, 1.0f, 1.0f, 1.0f });
blendConstants);
}
static void D3D11_BindGraphicsPipeline(