libgoatvr
diff example/src/main.c @ 30:1a8343ea54ce
fixed on windows
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 11 Apr 2015 04:01:47 +0300 |
parents | 5136dfcea7b1 |
children |
line diff
1.1 --- a/example/src/main.c Wed Apr 08 02:32:22 2015 +0300 1.2 +++ b/example/src/main.c Sat Apr 11 04:01:47 2015 +0300 1.3 @@ -57,6 +57,10 @@ 1.4 int x, y; 1.5 unsigned int flags; 1.6 1.7 + if(vr_init() == -1) { 1.8 + return -1; 1.9 + } 1.10 + 1.11 SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER); 1.12 1.13 x = y = SDL_WINDOWPOS_UNDEFINED; 1.14 @@ -72,10 +76,6 @@ 1.15 1.16 glewInit(); 1.17 1.18 - if(vr_init() == -1) { 1.19 - return -1; 1.20 - } 1.21 - 1.22 /* resize our window to match the HMD resolution */ 1.23 win_width = vr_geti(VR_DISPLAY_WIDTH); 1.24 win_height = vr_geti(VR_DISPLAY_HEIGHT);