This is caused by the AdapterDescription array having only one entry due to how it is populated in the loop above. Several test call “continue” resulting in no description for that device being added to the array.
This line is below the tests in the loop, it needs to be moved to above the tests.
AdapterDescription.Add(AdapterDesc);
Or, change line 368 to
ChosenDescription = AdapterDescription[0];
I’ll let someone familiar with that code make the correct fix.
Steps to reproduce:
Plug an Oculus CRV1 into the second (or subsequent) graphics adapter in your system.
This bug will not appear if you are plugging your HMD into the first adapter.
Project specifics:
This bug occurs on startup at 0%, no project is loaded.
Versions:
I compiled from zip file of 4.12.2 (and 4.12.1)
And just to be clear, I have fixed this issue for myself, I’m trying to give you guys the fix.The code change I described does fix the problem, I’m just not across that code so I’m not confident that my fix won’t have an adverse effect on something else.
I’ll try and get the most current source and look at the code in a bit more depth, then ill fix it there and create a pull request.