alvr-org / alvr-org/ALVR

GetNextSwapTextureSetIndex incorrect code

Offen
#3,239 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Rust
Sterne
7.9k
Forks
708
Ø Merge
3 T. 23 Std.
Gemergte PRs (30 T.)
11

Beschreibung

`pIndices` might be uninitialized. Reported by @Vixea . The fix is not trivial due to the SteamVR API, so opening an issue instead.
https://github.com/alvr-org/ALVR/blob/1a4194ff137937c0a4f416ad2d6d1acedb851e8a/alvr/server_openvr/cpp/platform/win32/OvrDirectModeComponent.cpp#L145-L148

Should be replace to something like:
```C++
( *pIndices )[ i ] = ++pSet->unIndex % 3;
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.