gre/glsl.js — pull request #12 by kevinb7 (2013-05-20 18:57:49+00:00)
Title: Allow users to specify arguments to canvas.getContext()

Allow users to specify arguments to canvas.getContext(). Arguments are passed as a dictionary stored in options.contextArgs where options is passed to Glsl(). e.g.

var glsl = Glsl({
canvas: canvas,
contextArgs: {
preserveDrawingBuffer: true
},
fragment: fragmentShader,
...,
});