vrchess
diff src/vr/vr_null.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 |
line diff
1.1 --- a/src/vr/vr_null.c Fri Aug 22 16:55:16 2014 +0300 1.2 +++ b/src/vr/vr_null.c Fri Aug 22 17:24:43 2014 +0300 1.3 @@ -2,13 +2,11 @@ 1.4 #define WIN32_LEAN_AND_MEAN 1.5 #include <windows.h> 1.6 #endif 1.7 - 1.8 #ifdef __APPLE__ 1.9 #include <OpenGL/gl.h> 1.10 #else 1.11 #include <GL/gl.h> 1.12 #endif 1.13 - 1.14 #include "vr_impl.h" 1.15 1.16 static unsigned int eye_tex[2]; 1.17 @@ -20,7 +18,7 @@ 1.18 return 0; 1.19 } 1.20 1.21 -static void present(void) 1.22 +static int present(void) 1.23 { 1.24 int i; 1.25 1.26 @@ -61,10 +59,7 @@ 1.27 glPopMatrix(); 1.28 1.29 glPopAttrib(); 1.30 - 1.31 -#ifdef WIN32 1.32 - SwapBuffers(wglGetCurrentDC()); 1.33 -#endif 1.34 + return 0; 1.35 } 1.36 1.37 static void set_eye_texture(int eye, unsigned int tex, float umin, float vmin, float umax, float vmax)