mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Fix -Wold-style-cast warning
This commit is contained in:
parent
c4e64db644
commit
79e898607d
@ -528,7 +528,7 @@ struct CD3DX12_RASTERIZER_DESC1 : public D3D12_RASTERIZER_DESC1
|
||||
FillMode = o.FillMode;
|
||||
CullMode = o.CullMode;
|
||||
FrontCounterClockwise = o.FrontCounterClockwise;
|
||||
DepthBias = (FLOAT)o.DepthBias;
|
||||
DepthBias = static_cast<FLOAT>(o.DepthBias);
|
||||
DepthBiasClamp = o.DepthBiasClamp;
|
||||
SlopeScaledDepthBias = o.SlopeScaledDepthBias;
|
||||
DepthClipEnable = o.DepthClipEnable;
|
||||
@ -585,7 +585,7 @@ struct CD3DX12_RASTERIZER_DESC1 : public D3D12_RASTERIZER_DESC1
|
||||
o.FillMode = FillMode;
|
||||
o.CullMode = CullMode;
|
||||
o.FrontCounterClockwise = FrontCounterClockwise;
|
||||
o.DepthBias = (INT)DepthBias;
|
||||
o.DepthBias = static_cast<INT>(DepthBias);
|
||||
o.DepthBiasClamp = DepthBiasClamp;
|
||||
o.SlopeScaledDepthBias = SlopeScaledDepthBias;
|
||||
o.DepthClipEnable = DepthClipEnable;
|
||||
|
Loading…
Reference in New Issue
Block a user