# HG changeset patch # User John Tsiombikas # Date 1427957834 -10800 # Node ID b2afe119657972a47f02402c50a56673fbcf254b # Parent 21067f4802dda22f96bb88212de554c50aa199ba minor fixes diff -r 21067f4802dd -r b2afe1196579 Makefile --- a/Makefile Thu Apr 02 09:51:01 2015 +0300 +++ b/Makefile Thu Apr 02 09:57:14 2015 +0300 @@ -3,7 +3,7 @@ bin = oculus2 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl2` -LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lovr $(libsys) +LDFLAGS = $(libgl) `pkg-config --libs sdl2` -lOVR -ldl $(libsys) ifeq ($(shell uname -s), Darwin) libgl = -framework OpenGL -lGLEW diff -r 21067f4802dd -r b2afe1196579 src/main.c --- a/src/main.c Thu Apr 02 09:51:01 2015 +0300 +++ b/src/main.c Thu Apr 02 09:57:14 2015 +0300 @@ -190,7 +190,7 @@ } /* disable the retarded "health and safety warning" */ - ovrhmd_EnableHSWDisplaySDKRender(hmd, 0); + /*ovrhmd_EnableHSWDisplaySDKRender(hmd, 0);*/ glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); @@ -514,13 +514,11 @@ int key_event(int key, int state) { if(state) { - /* ovrHSWDisplayState hsw; ovrHmd_GetHSWDisplayState(hmd, &hsw); if(hsw.Displayed) { ovrHmd_DismissHSWDisplay(hmd); } - */ switch(key) { case 27: