Skip to content

Commit 405d638

Browse files
author
Floyd Huizinga
committed
undo the static casts as the return type changed again
1 parent 889ab58 commit 405d638

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Cpp/1-getting-started/1-3-2-Texturing/TexturingApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ void TexturingApplication::Render()
418418

419419
D3D11_BUFFER_DESC description = {};
420420
_triangleVertices->GetDesc(&description);
421-
UINT stride = static_cast<UINT>(_shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv));
421+
UINT stride = _shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv);
422422
_deviceContext->IASetVertexBuffers(
423423
0,
424424
1,

src/Cpp/1-getting-started/1-3-3-SettingUp3DRendering/Setting3DApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ void Setting3DApplication::Render()
496496

497497
D3D11_BUFFER_DESC description = {};
498498
_triangleVertices->GetDesc(&description);
499-
UINT stride = static_cast<UINT>(_shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv));
499+
UINT stride = _shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv);
500500
_deviceContext->IASetVertexBuffers(
501501
0,
502502
1,

src/Cpp/1-getting-started/1-3-4-3DRendering/3DRenderingApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void Rendering3DApplication::Render()
415415

416416
_deviceContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY::D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
417417

418-
UINT stride = static_cast<UINT>(_shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv));
418+
UINT stride = _shaderCollection.GetLayoutByteSize(VertexType::PositionColorUv);
419419
_deviceContext->IASetVertexBuffers(
420420
0,
421421
1,

0 commit comments

Comments
 (0)