Running the following 'sphere code' under Processing2x, Mac OSX 10.6.8, I get a screwed output like the one below.
import processing.opengl.*;
size(500, 300, OPENGL); //P3D is the same
background(128);
sphereDetail(80);
translate(width/2, height/2, 0);
sphere(100);
The changes appear more or less random and may differ with every new program run. Sometimes it looks like the image is first drawn correctly and then screwed immediately afterwards.