Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid call of undeclared identifier 'texture2DRect' #27

Closed
cansik opened this issue Dec 2, 2015 · 6 comments
Closed

Invalid call of undeclared identifier 'texture2DRect' #27

cansik opened this issue Dec 2, 2015 · 6 comments

Comments

@cansik
Copy link
Contributor

cansik commented Dec 2, 2015

When I try to run this simple sketch with Processing 3.0.1, I always get this error message when trying to get the image. It doesn't matter if I use getGraphics or getImage.

Sketch

import codeanticode.syphon.SyphonClient;

SyphonClient client;
PGraphics img;

void setup()
{
  size(500, 500, P3D);
  client = new SyphonClient(this, "Simple Server");
}

void draw()
{
  if(client.active())
  {
    img = client.getGraphics(img);
    image(img, 0, 0, width, height);
  }
}

Error Message

Syphon 2.0-RC2 by Andres Colubri http://andrescolubri.net/
2015-12-02 09:09:21.021 java[5970:532404] SYPHON DEBUG: SyphonClientConnectionManager: Registering for info updates
OpenGL error 1282 at top beginDraw(): invalid operation
Could not compile shader 35632:
ERROR: 0:11: Invalid call of undeclared identifier 'texture2DRect'

Am I doing something wrong or is it a bug?

@bangnoise
Copy link
Member

Unfortunately there's no core-profile support yet, see #25

void settings() {
    // ...
    PGJOL.profile = 1;
}

@bangnoise
Copy link
Member

closing as dup #25

@neilcsmith-net
Copy link

Just out of interest, the cause of this particular error is a bug in Processing processing/processing#4810 I'm sure that isn't the only issue with core-profile support 😄 Although I had read something that would suggest a client might work?

@ghost
Copy link

ghost commented Oct 25, 2017

FWIW - my students were perplexed by why the suggested line above by bangnoise is wrong. There is a typo, and it should read:

void settings() {
    // ...
    PJOGL.profile = 1;
}

Hope this helps others.

@bangnoise
Copy link
Member

bangnoise commented Oct 25, 2017

Core Profile support is here now - that line is no longer required. Update/install the Syphon library from within Processing using the Contribution Manager (Sketch > Import Library... > Add Library...).

@ghost
Copy link

ghost commented Oct 25, 2017

Ah ok. Great - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants