-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Attempting to run the following code example provided at:
http://codeanticode.wordpress.com/2013/06/04/processing-2-0-is-out-processing-2-0-is-in/
PShape sh;
float angle;
void setup() {
size(400, 400, P3D); // same errors if P2D or OPENGL specified
sh = createShape();
sh.beginShape();
sh.fill(180);
sh.vertex(-200, -200);
sh.vertex(200, -200);
sh.vertex(200, 200);
sh.vertex(-200, 200);
sh.endShape();
}
void draw() {
background(0);
translate(200, 200);
rotateY(radians(angle)); // commented out for P2D, OPENGL versions
shape(sh);
angle += 1;
}
The above code generates the following errors:
Framebuffer error (unknown error), rendering will probably not work as expected
OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation
OpenGL error 1286 at bot endDraw(): invalid framebuffer operation
Framebuffer error (unknown error), rendering will probably not work as expected
OpenGL error 1286 at top endDraw(): invalid framebuffer operation
Note that the code is actually irrelevant. It is the P2D,P3D,OPENGL specification that causes failure. For example, the following code generates the same errors:
void setup() {size(400, 400, OPENGL);}
void draw() {line(0,0,400,400); }
Programs will run if no renderer is specified. Note that with Processing 1.5.1 P2D, P3D do not generate these error messages.
System: Windows 7 64 bit
Processing: 2.0 REV 0218 - 3 June 2013
OpenGL version 3.0
Video Card: NVIDIA® GeForce GT 555M 3GB graphics with Optimus edit
Installed graphics driver is dated 4/21/2011 (most recent available), driver version 8.17.12.6830
FYI, I advise avoiding the use of OpenGL Extensions Viewer to test your OpenGL config.