We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7549eb commit f4942b3Copy full SHA for f4942b3
src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -3346,7 +3346,7 @@ static D3D12Texture *D3D12_INTERNAL_CreateTexture(
3346
3347
if (createinfo->type != SDL_GPU_TEXTURETYPE_3D) {
3348
desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D;
3349
- desc.Alignment = isSwapchainTexture ? 0 : D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT;
+ desc.Alignment = isSwapchainTexture ? 0 : isMultisample ? D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT : D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT;
3350
desc.Width = createinfo->width;
3351
desc.Height = createinfo->height;
3352
desc.DepthOrArraySize = (UINT16)createinfo->layer_count_or_depth;
0 commit comments