conworlds

diff src/main.cc @ 6:3c36bc28c6c2

more stuff in the vr test
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 21 Aug 2014 01:08:03 +0300
parents a797e426e309
children bd8202d6d28d
line diff
     1.1 --- a/src/main.cc	Wed Aug 20 16:34:43 2014 +0300
     1.2 +++ b/src/main.cc	Thu Aug 21 01:08:03 2014 +0300
     1.3 @@ -2,6 +2,7 @@
     1.4  #include <stdlib.h>
     1.5  #include "opengl.h"
     1.6  #include "game.h"
     1.7 +#include "vr/vr.h"
     1.8  
     1.9  static bool init();
    1.10  static void cleanup();
    1.11 @@ -64,7 +65,9 @@
    1.12  	game_update(msec);
    1.13  	game_render(0);
    1.14  
    1.15 -	glutSwapBuffers();
    1.16 +	if(!vr_swap_buffers()) {
    1.17 +		glutSwapBuffers();
    1.18 +	}
    1.19  }
    1.20  
    1.21  static void idle()