@shfitz wrote:
I set up and installed OF per the recommendations here. I'm drawing a png with transparency to the screen in my app. It renders as expected, but after about 30 minutes or so, the image disappears.
This happens in windowed and fullscreen modes. It's not the screensaver or screen blanking kicking in as far as I can tell, as I've disabled the monitor going to sleep.
There's nothing special about the code (you can see it below).
Any ideas what may be causing this, how to avoid it, or where to look for errors?
void ofApp::setup(){ ofSetFrameRate(30); beachball.load("images/beachball.png"); rot = 0.; } void ofApp::draw(){ ofBackground(0); ofEnableAlphaBlending(); ofPushMatrix(); ofTranslate(ofGetWindowWidth()/2,ofGetWindowHeight()/2,0); beachball.setAnchorPercent(0.5f, 0.5f); ofRotate(rot); beachball.draw(0,0, 1000, 1000); ofPopMatrix(); ofDisableAlphaBlending(); }
Posts: 5
Participants: 2