shithub: h264bsd

Download patch

ref: e9abdf4e1f0586d3b50cc19c34098c1be13b9d68
parent: 3967fd3c5323ec35b5e9f39bbf736e7e9571db9d
author: Sam Leitch <[email protected]>
date: Sat Mar 8 17:07:53 EST 2014

Fixed error in context init.

--- a/js/h264bsd_canvas.js
+++ b/js/h264bsd_canvas.js
@@ -46,10 +46,10 @@
     var gl = null;
 
     var validContextNames = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
-    var i = 0;
+    var nameIndex = 0;
 
     while(!gl && nameIndex < validNames.length) {
-        var contextName = validContextNames[i];
+        var contextName = validContextNames[nameIndex];
         
         try {
             gl = canvas.getContext(contextName);
@@ -61,7 +61,7 @@
             gl = null;
         }    
 
-        ++i;
+        ++nameIndex;
     }
  
     this.contextGL = gl;