Skip to content

Commit 5c4b4c5

Browse files
authored
Merge pull request #359 from utzcoz/use-correct-lostEventCount
hello_xr: Use correct lost event count
2 parents dde23f1 + fe1168b commit 5c4b4c5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
clang-format: Add clang-format-15 as acceptable clang formats
2+
hello_xr: Use correct lost event count

runClangFormat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
set -e
1919
(
2020
PREFERRED_CLANG_FORMAT=clang-format-10
21-
ACCEPTABLE_CLANG_FORMATS="${PREFERRED_CLANG_FORMAT} clang-format-11 clang-format-12 clang-format-13 clang-format-14 clang-format"
21+
ACCEPTABLE_CLANG_FORMATS="${PREFERRED_CLANG_FORMAT} clang-format-11 clang-format-12 clang-format-13 clang-format-14 clang-format-15 clang-format"
2222
cd "$(dirname $0)"
2323
if [ ! "${CLANGFORMAT}" ]; then
2424
for tool in ${ACCEPTABLE_CLANG_FORMATS}; do

src/tests/hello_xr/openxr_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ struct OpenXrProgram : IOpenXrProgram {
680680
if (xr == XR_SUCCESS) {
681681
if (baseHeader->type == XR_TYPE_EVENT_DATA_EVENTS_LOST) {
682682
const XrEventDataEventsLost* const eventsLost = reinterpret_cast<const XrEventDataEventsLost*>(baseHeader);
683-
Log::Write(Log::Level::Warning, Fmt("%d events lost", eventsLost));
683+
Log::Write(Log::Level::Warning, Fmt("%d events lost", eventsLost->lostEventCount));
684684
}
685685

686686
return baseHeader;

0 commit comments

Comments
 (0)