mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 06:33:35 +02:00
Display a blank frame before switching away from oculus
This commit is contained in:
parent
ffc2c75534
commit
71e6f9bdd6
1 changed files with 10 additions and 0 deletions
|
@ -52,6 +52,16 @@ void OculusDisplayPlugin::customizeContext() {
|
|||
}
|
||||
|
||||
void OculusDisplayPlugin::uncustomizeContext() {
|
||||
using namespace oglplus;
|
||||
|
||||
// Present a final black frame to the HMD
|
||||
_compositeFramebuffer->Bound(FramebufferTarget::Draw, [] {
|
||||
Context::ClearColor(0, 0, 0, 1);
|
||||
Context::Clear().ColorBuffer();
|
||||
});
|
||||
|
||||
hmdPresent();
|
||||
|
||||
#if (OVR_MAJOR_VERSION >= 6)
|
||||
_sceneFbo.reset();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue