mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-04-06 00:20:56 +00:00
OpenXR add missing foveation
This commit is contained in:
parent
4ff90d8ba0
commit
8431b1aa83
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,13 @@ void VR_InitRenderer( engine_t* engine ) {
|
|||
int eyeW, eyeH;
|
||||
VR_GetResolution(engine, &eyeW, &eyeH);
|
||||
ovrRenderer_Create(engine->session, &engine->renderer, eyeW, eyeH);
|
||||
ovrRenderer_SetFoveation(
|
||||
&engine->instance,
|
||||
&engine->session,
|
||||
&engine->renderer,
|
||||
XR_FOVEATION_LEVEL_HIGH_FB,
|
||||
0,
|
||||
XR_FOVEATION_DYNAMIC_DISABLED_FB);
|
||||
|
||||
XrReferenceSpaceCreateInfo spaceCreateInfo = {};
|
||||
spaceCreateInfo.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO;
|
||||
|
|
Loading…
Reference in a new issue