// disables renderer support for the Rift void R_VR_Disable() { R_DelIVBO(&hudVBO); R_BindFBO(&screenFBO); vrState.pixelScale = 1.0; if (hmd && hmd->disable) hmd->disable(); if (hud.valid) R_DelFBO(&hud); R_DelShaderProgram(&vr_shader_distort_norm); R_DelShaderProgram(&vr_shader_distort_chrm); }
void OVR_Disable(void) { int i; R_DelShaderProgram(&ovr_shader_norm); R_DelShaderProgram(&ovr_shader_chrm); R_DelShaderProgram(&ovr_shader_warp); R_DelShaderProgram(&ovr_shader_chrm_warp); for (i = 0; i < 2; i++) { if (renderInfo[i].eyeFBO.valid) R_DelFBO(&renderInfo[i].eyeFBO); if (offscreen[i].valid) R_DelFBO(&offscreen[i]); R_DelIVBO(&renderInfo[i].eye); } }