Skip to content

Commit f677412

Browse files
committed
Fixing compiler warnings.
1 parent d7108b9 commit f677412

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

virtualdesktop-openxr/d3d11_native.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ namespace virtualdesktop_openxr {
605605
m_d3d11ContextState.ReleaseAndGetAddressOf());
606606
}
607607

608-
if (xrSwapchain.appSwapchain.srvs.size() <= lastReleasedIndex) {
608+
if ((int)xrSwapchain.appSwapchain.srvs.size() <= lastReleasedIndex) {
609609
xrSwapchain.appSwapchain.srvs.resize(lastReleasedIndex + 1);
610610
}
611611
if (!xrSwapchain.appSwapchain.srvs[lastReleasedIndex]) {
@@ -622,7 +622,7 @@ namespace virtualdesktop_openxr {
622622
fmt::format(
623623
"Runtime Slice SRV[{}, {}, {}]", slice, lastReleasedIndex, (void*)&xrSwapchain));
624624
}
625-
if (xrSwapchain.resolvedSlices[slice].dsvs.size() <= ovrDestIndex) {
625+
if ((int)xrSwapchain.resolvedSlices[slice].dsvs.size() <= ovrDestIndex) {
626626
xrSwapchain.resolvedSlices[slice].dsvs.resize(ovrDestIndex + 1);
627627
}
628628
if (!xrSwapchain.resolvedSlices[slice].dsvs[ovrDestIndex]) {

virtualdesktop-openxr/frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ namespace virtualdesktop_openxr {
10321032
m_ovrSubmissionContext->CSSetConstantBuffers(0, 1, m_alphaCorrectConstants.GetAddressOf());
10331033
}
10341034

1035-
if (xrSwapchain.resolvedSlices[slice].uavs.size() <= ovrDestIndex) {
1035+
if ((int)xrSwapchain.resolvedSlices[slice].uavs.size() <= ovrDestIndex) {
10361036
xrSwapchain.resolvedSlices[slice].uavs.resize(ovrDestIndex + 1);
10371037
}
10381038
if (!xrSwapchain.resolvedSlices[slice].uavs[ovrDestIndex]) {

virtualdesktop-openxr/instance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ namespace virtualdesktop_openxr {
460460

461461
TraceLoggingWrite(g_traceProvider,
462462
"VisibilityMaskChanged",
463-
TLPArg(buffer->session, "Session"),
463+
TLXArg(buffer->session, "Session"),
464464
TLArg(xr::ToCString(buffer->viewConfigurationType), "ViewConfigurationType"),
465465
TLArg(buffer->viewIndex, "ViewIndex"));
466466

virtualdesktop-openxr/precompositor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace virtualdesktop_openxr {
131131
for (uint32_t eye = 0; eye < xr::StereoView::Count; eye++) {
132132
// Prepare swapchain input.
133133
auto& slice = swapchains[eye]->resolvedSlices[subImages[eye]->imageArrayIndex];
134-
if (slice.srvs.size() <= slice.lastCommittedIndex) {
134+
if ((int)slice.srvs.size() <= slice.lastCommittedIndex) {
135135
slice.srvs.resize(slice.lastCommittedIndex + 1);
136136
}
137137
if (!slice.srvs[slice.lastCommittedIndex]) {

0 commit comments

Comments
 (0)