openframeworks / openframeworks/openFrameworks
ofFbo breaks under iOS in certain conditions
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Don't know where the fault lies but in case it helps someone else
Demo:
https://github.com/jvcleave/OF_iOS_Fbo_issue
If your app uses ofFbo and you try and present your ofxiOSViewController with
[self.window.rootViewController presentViewController:appViewController animated:NO completion:NULL]
ofFbo stops working. More bizarre is that other drawing still works (e.g. ofDrawBitmapString) UNLESS you touch the fbo at all (e.g. ofFbo::begin, ofFbo::end)
as the demo project shows pushing the view controller and hiding the navigationBar is a workaround
[self.navigationController pushViewController:appViewController animated:NO];
self.navigationController.navigationBar.hidden = YES;
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked demo project and reproduce the failure after presenting ofxiOSViewController with presentViewController:. Compare behavior when ofFbo::begin or ofFbo::end is called with the documented pushViewController workaround; the issue is done when the cause is identified and ofFbo rendering works in the affected presentation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, ios
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100