openframeworks / openframeworks/openFrameworks
ofFbo: broken on Android
Open
Nobody has claimed this yet.
android
bug
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Following code shouldn't draw anything because I don't call fbo.draw()
But I get a red screen with a green square at the bottom (y coord is inverted)
ofFbo fbo;
//--------------------------------------------------------------
void ofApp::setup(){
fbo.allocate(600, 400);
}
//--------------------------------------------------------------
void ofApp::draw(){
fbo.begin();
ofClear(125,0,0);
ofSetColor(0,255,0);
ofFill();
ofDrawRectangle(10, 10, 100, 100);
fbo.end();
}

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
Reproduce the minimal example on Android, starting with the ofApp setup() and draw() flow and the ofFbo allocate(), begin(), and end() calls shown. Confirm that omitting fbo.draw() produces no visible output and that the rectangle does not appear with an inverted y coordinate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100