View Single Post
Here is how that error shows up in the code I was trying to use:

I am using OpenFrameworks and ofxPostProcessing. The postprocessing stuff basically just wraps some shaders and abstracts their use in OpenFrameworks.

The problem happens in an ofxPostProcessing class that extends an abstract class from OpenFrameworks. PostProcessing extends ofBaseDraws defined in ofBaseTypes.h.


ofBaseDraws


PostProcessing.h
PostProcessing.cpp

These are supposed to be the implementations of the abstract methods in ofBaseDraws. I don't know if the presence or lack of a const qualifier is part of the function signature. There is not a const qualifier on the abstract class method defintions. Taking the const qualifier off the PostProcessing stuff allows it to build.

PostProcessing.h



Here is where the compiler flags the error where draw is called on the frame buffer reference raw and the other draw call on the ping pong frame buffer.

PostProcessing.cpp