goat3dgfx

diff src/goat3dgfx.cc @ 11:d061fe1a31ec

compile vr source files or not
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Nov 2013 14:00:14 +0200
parents b4c9a24c946e
children 1868c5975f31
line diff
     1.1 --- a/src/goat3dgfx.cc	Sun Nov 24 13:30:44 2013 +0200
     1.2 +++ b/src/goat3dgfx.cc	Sun Nov 24 14:00:14 2013 +0200
     1.3 @@ -1,4 +1,7 @@
     1.4 +#include "config.h"
     1.5  #include "goat3dgfx.h"
     1.6 +#include "vr.h"
     1.7 +#include "logger.h"
     1.8  
     1.9  bool init_goat_graphics()
    1.10  {
    1.11 @@ -6,6 +9,13 @@
    1.12  
    1.13  	glewInit();
    1.14  
    1.15 +#ifdef USE_VR
    1.16 +	if(vr_init() == -1) {
    1.17 +		log_fatal("failed to initialize the VR system\n");
    1.18 +		return false;
    1.19 +	}
    1.20 +#endif
    1.21 +
    1.22  	return true;
    1.23  }
    1.24