mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-24 20:18:29 +00:00
Amend use of non-standard compiler syntax
This commit is contained in:

committed by
Ozkan Sezer

parent
0a8bf663b7
commit
0a44ea1b0b
@@ -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(
|
||||
|
Reference in New Issue
Block a user