Closed dimitre closed 5 years ago
I took a while to discover, but getTexture actually is not allocated if I don't use draw command. I'm now using a draw to circumvent this.
syphonIn.draw(0,0,0,0); ofTexture & tex = ui->pBool["syphon"] ? syphonIn.getTexture() : webcam.getTexture();
Thanks
Have you heeded the comment above getTexture()? ie you have to do:
getTexture()
syphonIn.bind(); ofTexture & tex = syphonIn.getTexture(); // use the texture here syphonIn.unbind();
Thank you @bangnoise
I took a while to discover, but getTexture actually is not allocated if I don't use draw command. I'm now using a draw to circumvent this.
Thanks