oculus2

changeset 23:21067f4802dd

build with OVR 0.5.0.1
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 02 Apr 2015 09:51:01 +0300
parents 9ee3ab70ca6b
children b2afe1196579
files src/main.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/src/main.c	Thu Apr 02 05:57:41 2015 +0300
     1.2 +++ b/src/main.c	Thu Apr 02 09:51:01 2015 +0300
     1.3 @@ -89,7 +89,7 @@
     1.4  	unsigned int flags;
     1.5  
     1.6  	/* libovr must be initialized before we create the OpenGL context */
     1.7 -	ovr_Initialize();
     1.8 +	ovr_Initialize(0);
     1.9  
    1.10  	SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER);
    1.11  
    1.12 @@ -180,12 +180,11 @@
    1.13  	hmd_caps = ovrHmdCap_LowPersistence | ovrHmdCap_DynamicPrediction;
    1.14  	ovrHmd_SetEnabledCaps(hmd, hmd_caps);
    1.15  
    1.16 -	/* configure SDK-rendering and enable chromatic abberation correction, vignetting, and
    1.17 -	 * timewrap, which shifts the image before drawing to counter any lattency between the call
    1.18 +	/* configure SDK-rendering and enable OLED overdrive and timewrap, which
    1.19 +	 * shifts the image before drawing to counter any lattency between the call
    1.20  	 * to ovrHmd_GetEyePose and ovrHmd_EndFrame.
    1.21  	 */
    1.22 -	distort_caps = ovrDistortionCap_Chromatic | ovrDistortionCap_TimeWarp |
    1.23 -		ovrDistortionCap_Overdrive;
    1.24 +	distort_caps = ovrDistortionCap_TimeWarp | ovrDistortionCap_Overdrive;
    1.25  	if(!ovrHmd_ConfigureRendering(hmd, &glcfg.Config, distort_caps, hmd->DefaultEyeFov, eye_rdesc)) {
    1.26  		fprintf(stderr, "failed to configure distortion renderer\n");
    1.27  	}