Skip to content

Commit

Permalink
Added a default value for strokeWeight, fixes Corbans demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor committed May 6, 2010
1 parent 82fe91f commit d6952cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions processing.js
Expand Up @@ -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
Expand Down

0 comments on commit d6952cc

Please sign in to comment.