From d6952ccfb2051c6d7a09bb357e5b84458dd9d58a Mon Sep 17 00:00:00 2001 From: Andor Date: Wed, 5 May 2010 21:39:19 -0400 Subject: [PATCH] Added a default value for strokeWeight, fixes Corbans demo. --- processing.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/processing.js b/processing.js index 7bd65f800..7b592ee14 100644 --- a/processing.js +++ b/processing.js @@ -4572,6 +4572,11 @@ // 3D (spheres, boxes) shapes. Because 2D shapes are not lit, // lighting calculations could be ommitted from that program object. programObject2D = createProgramObject(curContext, vertexShaderSource2D, fragmentShaderSource2D); + + // set the defaults + curContext.useProgram(programObject2D); + p.strokeWeight(1.0); + programObject3D = createProgramObject(curContext, vertexShaderSource3D, fragmentShaderSource3D); // Now that the programs have been compiled, we can set the default