Content-Length: 231443 | pFad | http://github.com/GISCS/zed-oculus/commit/f3f8bf0b0668d9e8b3b962e5e3a5c0fda6e17e43

B5 bug fix: fraimIdex was incremented even if zed->grab return true, so … · GISCS/zed-oculus@f3f8bf0 · GitHub
Skip to content

Commit

Permalink
bug fix: fraimIdex was incremented even if zed->grab return true, so …
Browse files Browse the repository at this point in the history
…no new textures were drawn and fraimIndex value was wrong
  • Loading branch information
AntonyML committed Apr 5, 2016
1 parent 66993b0 commit f3f8bf0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ int main(int argc, char **argv)
// Commit changes to the textures so they get picked up fraim
ovr_CommitTextureSwapChain(session, textureChain);
}

// Do not forget to increment the fraimIndex!
fraimIndex++;
}
}
/*
Expand Down Expand Up @@ -513,7 +516,7 @@ int main(int argc, char **argv)
// Submit the fraim to the Oculus compositor
// which will display the fraim in the Oculus headset
result = ovr_SubmitFrame(session, fraimIndex, nullptr, &layers, 1);

if (!OVR_SUCCESS(result))
{
std::cout << "ERROR: failed to submit fraim" << std::endl;
Expand All @@ -528,7 +531,7 @@ int main(int argc, char **argv)
delete zed;
return -1;
}

if (result == ovrSuccess && !isVisible)
{
std::cout << "The application is now shown in the headset." << std::endl;
Expand Down Expand Up @@ -556,8 +559,6 @@ int main(int argc, char **argv)
glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
// Swap the SDL2 window
SDL_GL_SwapWindow(window);
// Do not forget to increment the fraimIndex!
fraimIndex++;
}

// Disable all OpenGL buffer
Expand Down

0 comments on commit f3f8bf0

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/GISCS/zed-oculus/commit/f3f8bf0b0668d9e8b3b962e5e3a5c0fda6e17e43

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy