mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:56:29 +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);
|
glEnable(GL_LIGHTING);
|
||||||
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE);
|
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE);
|
||||||
|
|
||||||
|
|
||||||
if (renderToTexture) {
|
if (renderToTexture) {
|
||||||
getFramebufferObject()->release();
|
getFramebufferObject()->release();
|
||||||
}
|
}
|
||||||
|
@ -319,6 +318,7 @@ void ApplicationOverlay::displayOverlayTextureOculus(Camera& whichCamera) {
|
||||||
|
|
||||||
float leftX, rightX, leftZ, rightZ;
|
float leftX, rightX, leftZ, rightZ;
|
||||||
|
|
||||||
|
glColor3f(1.0f, 1.0f, 1.0f);
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
|
|
||||||
// Place the vertices in a semicircle curve around the camera
|
// Place the vertices in a semicircle curve around the camera
|
||||||
|
|
Loading…
Reference in a new issue