Skip to content

drawStats() warnings #1

Open
Open
@whoisbma

Description

Occasionally I seem to get the following warning:

gl invalid operation

Pinpointing if the issue is part of my application or part of the libraries aside, I may ultimately need to disable the line of code that runs drawStats() in RUNNING state to prevent this from flashing onscreen (line 949, ofxApp.cpp in my version - case State::RUNNING: /*drawStats();*/ drawAnimatable(); break;). Should there be an override for this?

The reason I may not fix it in the end is because the source of this gl error might be down in some libraries that I haven't been interfacing very directly with (e.g. fontstash), and ultimately the invalid operation error doesn't cause any showstopper issues. In any case, I haven't found it yet.

As a separate point, since this part of drawStats() only gets drawn when ofxApp::utils::getGlError() returns something with a size over zero, this error only flashes onscreen for one frame. If its critical to be notified of GL issues in an app it seems like a possibly desirable solution would be to push the error message into a stack of them to gradually disappear onscreen, or just be moved into normal OF error logging.

Happy to hear any thoughts!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions