conworlds
diff src/vr/vr_libovr.c @ 8:90abf4b93cc9
fixed line endings
fixed viewport when returning to original framebuffer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Aug 2014 17:24:43 +0300 |
parents | bd8202d6d28d |
children | c2eecf764daa |
line diff
1.1 --- a/src/vr/vr_libovr.c Fri Aug 22 16:55:16 2014 +0300 1.2 +++ b/src/vr/vr_libovr.c Fri Aug 22 17:24:43 2014 +0300 1.3 @@ -205,12 +205,14 @@ 1.4 } 1.5 } 1.6 1.7 -static void present(void) 1.8 +static int present(void) 1.9 { 1.10 if(!hmd) return; 1.11 1.12 ovrHmd_EndFrame(hmd, pose, &eye_tex[0].Texture); 1.13 new_frame = 1; 1.14 + 1.15 + return 1; 1.16 } 1.17 1.18 static void set_eye_texture(int eye, unsigned int tex, float umin, float vmin, float umax, float vmax)