# HG changeset patch # User John Tsiombikas # Date 1446179671 -7200 # Node ID 7f6d68d95c22ffc5a11137ef327aee4af0ee743c # Parent ffb62c8db542607555448e4cbe587737e2f5eacf updated to new version of goatvr diff -r ffb62c8db542 -r 7f6d68d95c22 src/console.cc --- a/src/console.cc Fri Oct 30 05:40:22 2015 +0200 +++ b/src/console.cc Fri Oct 30 06:34:31 2015 +0200 @@ -275,7 +275,6 @@ float outbox_height = nlines * line_height; float console_height = outbox_height + line_height * 1.5; - int vp[4]; glGetIntegerv(GL_VIEWPORT, vp); diff -r ffb62c8db542 -r 7f6d68d95c22 src/main.cc --- a/src/main.cc Fri Oct 30 05:40:22 2015 +0200 +++ b/src/main.cc Fri Oct 30 06:34:31 2015 +0200 @@ -70,6 +70,11 @@ return false; } + char *env = getenv("VR_NULL_STEREO_GL"); + if(env && atoi(env)) { + SDL_GL_SetAttribute(SDL_GL_STEREO, 1); + } + win = SDL_CreateWindow("vrheights", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 800, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE); if(!win) {