History

Working on reprojection

Brad Davis committed 10 years ago

Commit 7e937471 parent 66cc91330 files · +868 −260Browse files

Showing the changes to plugins/oculus/src/OculusDisplayPlugin.cpp (1 of 30 files). Show all

Unified · Split

plugins/oculus/src/OculusDisplayPlugin.cpp+1−2
@@ -110,8 +110,7 @@ void OculusDisplayPlugin::hmdPresent() { · 109 unmodified lines
110 PROFILE_RANGE_EX(__FUNCTION__, 0xff00ff00, (uint64_t)_currentFrame->frameIndex)110 PROFILE_RANGE_EX(__FUNCTION__, 0xff00ff00, (uint64_t)_currentFrame->frameIndex)
111 111
112 // Manually bind the texture to the FBO112 // Manually bind the texture to the FBO
113 auto& glBackend = dynamic_cast<gpu::gl::GLBackend&>(*_backend);113 auto fbo = getGLBackend()->getFramebufferID(_outputFramebuffer);
114 auto fbo = glBackend.getFramebufferID(_outputFramebuffer);
115 {114 {
116 int curIndex;115 int curIndex;
117 ovr_GetTextureSwapChainCurrentIndex(_session, _textureSwapChain, &curIndex);116 ovr_GetTextureSwapChainCurrentIndex(_session, _textureSwapChain, &curIndex);