vrheights
diff src/main.cc @ 16:7f6d68d95c22
updated to new version of goatvr
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 06:34:31 +0200 |
parents | 053a52f0cb64 |
children |
line diff
1.1 --- a/src/main.cc Fri Oct 30 05:40:22 2015 +0200 1.2 +++ b/src/main.cc Fri Oct 30 06:34:31 2015 +0200 1.3 @@ -70,6 +70,11 @@ 1.4 return false; 1.5 } 1.6 1.7 + char *env = getenv("VR_NULL_STEREO_GL"); 1.8 + if(env && atoi(env)) { 1.9 + SDL_GL_SetAttribute(SDL_GL_STEREO, 1); 1.10 + } 1.11 + 1.12 win = SDL_CreateWindow("vrheights", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1.13 1280, 800, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE); 1.14 if(!win) {