ofFbo Y axis 1, not 0 indexed?

Hello all,

I’ve been using ofFBO and have discovered that on the Y axis it seems to be 1 rather than 0 indexed, but on the X axis. In the example below a line that’s supposed to be at y0 doesn’t get drawn. This is confirmed by printing out the first pixel of each line on the y axis.

I’m new to oF so I’m not sure if this is expected, but I couldn’t find anything in the documentation about it, and it seems at odds with normal drawing within the draw function.

This was using the up to date Master branch from github, on OS X 10.9.2, XCode 5.1

void ofApp::setup(){
    fbo.allocate(936, 40, GL_RGB);
    fbo.begin();
    ofClear(100, 100, 100);
    fbo.end()       
}

void ofApp::update(){
    fbo.begin();
    ofSetColor(255, 255, 255);
    ofSetLineWidth(1.0);
    ofLine(0, 0, fbo.getWidth(), 0); // doesn't get drawn
  
    // ofLine(0, 1, fbo.getWidth(), 1); // drawn on the first line
    // ofLine(0, fbo.getHeight(), fbo.getWidth(), fbo.getHeight()); // drawn on last line
    // ofLine(1, 1, fbo.getWidth(), 1); // shows correct 0 indexing on X axis

    fbo.end();
}

void ofApp::draw(){
    fbo.draw(0, 0);    
}

void ofApp::keyPressed(int key){
    if (key == 'x') {
        ofPixels pix;
        fbo.readToPixels(pix);
        for (int i = 0; i < fbo.getHeight(); i++) {
            int val = (int)pix[i * pix.getNumChannels() * pix.getWidth()];
            ofLog() << i << ": " << val << '\n';
        }
    }
}

Current workaround is to add

fbo.begin();

glMatrixMode(GL_MODELVIEW);
glTranslatef(0, 1.0, 0.0);
//... drawing

fbo.end();