astellato / ofxSyphon

An OF add-on for using the Syphon framework.
Other
193 stars 57 forks source link

ofEnableArbTex / ofDisableArbTex(); #5

Closed borg closed 11 years ago

borg commented 11 years ago

I had an issue with the texture not filling the syphon recorder screen size. It comes down to ofDisableArbTex() being called in setup. Turned out that the shader that needed ofDisableArbTex still worked if I called ofEnableArbTex() inside the draw function.

ofEnableArbTex(); tex.loadScreenData(0,0,ofGetWidth(),ofGetHeight());
//both work mainOutputSyphonServer.publishScreen(); individualTextureSyphonServer.publishTexture(&tex);
ofDisableArbTex();

Worth mentioning I figure.

astellato commented 11 years ago

In ofxSyphonClient.mm you can see where the texture target is defined. Syphon always outputs GL_TEXTURE_RECTANGLE_ARB.