From 10d0b6af03daf43b1668ffef0451754ae55d80a0 Mon Sep 17 00:00:00 2001 From: barnold1953 Date: Mon, 2 Jun 2014 16:47:51 -0700 Subject: [PATCH] Fixed Oculus overlay color bug --- interface/src/ui/ApplicationOverlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/ui/ApplicationOverlay.cpp b/interface/src/ui/ApplicationOverlay.cpp index b9ef81ef5e..bd0b1cf2ff 100644 --- a/interface/src/ui/ApplicationOverlay.cpp +++ b/interface/src/ui/ApplicationOverlay.cpp @@ -228,7 +228,6 @@ void ApplicationOverlay::renderOverlay(bool renderToTexture) { glEnable(GL_LIGHTING); glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE); - if (renderToTexture) { getFramebufferObject()->release(); } @@ -319,6 +318,7 @@ void ApplicationOverlay::displayOverlayTextureOculus(Camera& whichCamera) { float leftX, rightX, leftZ, rightZ; + glColor3f(1.0f, 1.0f, 1.0f); glBegin(GL_QUADS); // Place the vertices in a semicircle curve around the camera