[Enhancement] Quick prototype of PDF export

This commit is contained in:
David Hudson
2016-08-31 23:03:48 +09:00
parent 4091e9cdf4
commit 852ac3cd55
3 changed files with 23 additions and 2 deletions

View File

@ -54,7 +54,7 @@ define(
* @throws {Error} an error is thrown if WebGL is unavailable.
*/
function GLChart(canvas) {
var gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl"),
var gl = canvas.getContext("webgl", { preserveDrawingBuffer: true }) || canvas.getContext("experimental-webgl", { preserveDrawingBuffer: true }),
vertexShader,
fragmentShader,
program,