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

Frame.setlocation(x,y) #217

Open
x3sp3d3s opened this issue Feb 5, 2015 · 1 comment
Open

Frame.setlocation(x,y) #217

x3sp3d3s opened this issue Feb 5, 2015 · 1 comment

Comments

@x3sp3d3s
Copy link

x3sp3d3s commented Feb 5, 2015

Hi, I'm here again! Now I have another problem, we use :
size(client.getLWidth(), client.getLHeight(), SMT.RENDERER);
and our sketch starts outside of our screen, but we use too: Frame.setLocation(0,0).
The problem is that, when we run the project for the first time, it doesn't work :
OpenGL error 1282 at bot beginDraw(): invalid operation
OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation
OpenGL error 1286 at top endDraw(): invalid framebuffer operation
OpenGL error 1286 at bot endDraw(): invalid framebuffer operation

In internet I read that's a problem between SMT.RENDERER and frame.setLocation. Can anybody help me??
Thx

@mshancock
Copy link
Collaborator

Unfortunately, this isn't enough information to be able to reproduce this issue. Do you think you could break down your code into a minimal possible sketch that produces the same errors and then share that? From what you've provided, I have no idea what "client" is nor in what context you make a call to setLocation and on what frame instance.

Also, are you running this code in Processing, or in Java through something like Eclipse, where you create other JFrames or something?

For me, modifying the first tutorial example by adding setLocation works fine as follows:

void setup(){
    //SMT and Processing setup
    size( displayWidth, displayHeight, SMT.RENDERER);
    this.setLocation(0,0);

    // ...
}

I'm not yet convinced that this is a bug in SMT.

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

No branches or pull requests

3 participants