mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:33:31 +02:00
Fixed Oculus overlay color bug
This commit is contained in:
parent
4ed03e996a
commit
10d0b6af03
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue