node-openvg-canvas icon indicating copy to clipboard operation
node-openvg-canvas copied to clipboard

has no method 'vgSwapBuffers'

Open nagualcode opened this issue 9 years ago • 1 comments

Hello, I can get the clock example running, but many other fails like:

/node-openvg-canvas/examples/pathText.js:107 canvas.vgSwapBuffers(); ^ TypeError: Object [object Object] has no method 'vgSwapBuffers' at Object. (/root/node-openvg-canvas/examples/pathText.js:107:8) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

nagualcode avatar Oct 08 '15 17:10 nagualcode

Change those calls from "canvas.vgSwapBuffers();" to "Canvas.vgSwapBuffers();". They're different variables.

2xAA avatar Nov 11 '15 13:11 2xAA