vrheights

changeset 16:7f6d68d95c22 tip

updated to new version of goatvr
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 30 Oct 2015 06:34:31 +0200
parents ffb62c8db542
children
files src/console.cc src/main.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/console.cc	Fri Oct 30 05:40:22 2015 +0200
     1.2 +++ b/src/console.cc	Fri Oct 30 06:34:31 2015 +0200
     1.3 @@ -275,7 +275,6 @@
     1.4  	float outbox_height = nlines * line_height;
     1.5  	float console_height = outbox_height + line_height * 1.5;
     1.6  
     1.7 -	
     1.8  	int vp[4];
     1.9  	glGetIntegerv(GL_VIEWPORT, vp);
    1.10  
     2.1 --- a/src/main.cc	Fri Oct 30 05:40:22 2015 +0200
     2.2 +++ b/src/main.cc	Fri Oct 30 06:34:31 2015 +0200
     2.3 @@ -70,6 +70,11 @@
     2.4  		return false;
     2.5  	}
     2.6  
     2.7 +	char *env = getenv("VR_NULL_STEREO_GL");
     2.8 +	if(env && atoi(env)) {
     2.9 +		SDL_GL_SetAttribute(SDL_GL_STEREO, 1);
    2.10 +	}
    2.11 +
    2.12  	win = SDL_CreateWindow("vrheights", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
    2.13  		1280, 800, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
    2.14  	if(!win) {