endable blending

This commit is contained in:
SamGondelman 2016-06-30 10:25:49 -07:00
parent 15d09bb4fa
commit 057fc8adce

View file

@ -439,6 +439,8 @@ void HmdDisplayPlugin::internalPresent() {
_firstPreview = false;
}
useProgram(_previewProgram);
glEnable (GL_BLEND);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
glViewport(targetViewportPosition.x, targetViewportPosition.y, targetViewportSize.x, targetViewportSize.y);