openframeworks / openframeworks/openFrameworks

ofFbo: broken on Android

Open
#5,183 9 comments 0 reactions 0 assignees View on GitHub

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();
}

597ddfc1367a9ba05093f3afa648306f22fd5eba_1_281x500

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.