<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,7 +17,7 @@ function log(msg) {
 
 function init(ev) {
     var canvas = document.getElementById('canvas');
-    var gl = canvas.getContext('moz-webgl');
+    var gl = canvas.getContext(GL_CONTEXT_ID);
 
     var shader = new Shader(gl, &quot;ppix-vert&quot;, &quot;ppix-frag&quot;);
     shader.compile();</diff>
      <filename>demos/opengl_web.html</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,7 @@ var processor = {
   init: function() {
     if (this.initDone) return;
     this.c2 = document.getElementById(&quot;c2&quot;);
-    this.ctx2 = this.c2.getContext(&quot;moz-glweb20&quot;);
+    this.ctx2 = this.c2.getContext(GL_CONTEXT_ID);
     this.greenScreen = new Filter(this.ctx2, 'identity-flip-vert', 'greenScreen');
     this.ctx2.activeTexture(this.ctx2.TEXTURE0);
     this.tex = loadTexture(this.ctx2, this.c1, false);
@@ -44,12 +44,11 @@ var processor = {
 
   computeFrame: function() {
     this.ctx1.drawImage(this.video, 0, 0, this.width, this.height);
-    this.ctx2.texSubImage2DHTML(this.ctx2.TEXTURE_2D, 0, 0, 0, this.c1);
+    this.ctx2.texSubImage2D(this.ctx2.TEXTURE_2D, 0, 0, 0, this.c1);
     this.greenScreen.apply(function(s) {
         s.uniform1iv('Texture', [0]);
         s.uniform1iv('Texture2', [1]);
     });
-    this.ctx2.swapBuffers();
 
     return;
   }</diff>
      <filename>demos/video.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4ead6b0e395aa3391cbd0123a8bede9449528dd1</id>
    </parent>
  </parents>
  <author>
    <name>kig</name>
    <email>ilmari.heikkinen@gmail.com</email>
  </author>
  <url>http://github.com/kig/canvas3d-tests/commit/de7492135b24b77c84773a1de4bdc7ebc362b9ac</url>
  <id>de7492135b24b77c84773a1de4bdc7ebc362b9ac</id>
  <committed-date>2009-11-10T02:32:31-08:00</committed-date>
  <authored-date>2009-11-10T02:32:31-08:00</authored-date>
  <message>update demos to use GL_CONTEXT_ID</message>
  <tree>293eeb30780535ea69367b4ec4ae077745b1684e</tree>
  <committer>
    <name>kig</name>
    <email>ilmari.heikkinen@gmail.com</email>
  </committer>
</commit>
