]> git.tdb.fi Git - libs/vr.git/commitdiff
Chromatic aberration correction is always included in distortion
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2016 15:44:56 +0000 (17:44 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2016 15:44:56 +0000 (17:44 +0200)
The separate flag no longer exists as of SDK 0.5.0.

source/oculusriftcombiner.cpp

index 0cfd4ae1c6398701350c0a3c00114a0435447b8e..0d883fa575f9e7b09450f9f87a1ad4ab4fd668a4 100644 (file)
@@ -51,7 +51,7 @@ const char fs_source[] =
 void create_distortion_mesh(Msp::GL::Mesh &mesh, ovrHmd hmd, ovrEyeType eye, const ovrFovPort &fov)
 {
        ovrDistortionMesh ovr_mesh;
-       ovrHmd_CreateDistortionMesh(hmd, eye, fov, ovrDistortionCap_Chromatic|ovrDistortionCap_Vignette|ovrDistortionCap_TimeWarp, &ovr_mesh);
+       ovrHmd_CreateDistortionMesh(hmd, eye, fov, ovrDistortionCap_Vignette|ovrDistortionCap_TimeWarp, &ovr_mesh);
 
        Msp::GL::MeshBuilder bld(mesh);
        for(unsigned i=0; i<ovr_mesh.VertexCount; ++i)