Skip to content

Commit

Permalink
Carl Witty's fix for WebGLTrace: https://xeolabs.lighthouseapp.com/pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Jul 22, 2010
1 parent 4d71809 commit 14bcd08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/XMLHttpRequest.1.0.3.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/remote.concise.js

This file was deleted.

Empty file added src/scenejs/core/tracing.patch
Empty file.
14 changes: 7 additions & 7 deletions src/scenejs/core/webgl-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ function makeDebugContext(ctx, opt_onErrorFunc) {
return undefined;
}
var buf = 'new ' + arrayType + '( [';
for (var i = 0; i < a.length; i++) {
if (i > 0 ) {
buf += ', ';
}
buf += a.get(i);
}
// for (var i = 0; i < a.length; i++) {
// if (i > 0 ) {
// buf += ', ';
// }
// buf += a.get(i);
// }
buf += '] )';
return buf;
};
Expand All @@ -304,7 +304,7 @@ function makeDebugContext(ctx, opt_onErrorFunc) {
}
var objectName;
try {
if (arg !== null) {
if (arg !== null && arg !== undefined) {
objectName = arg[objectNameProperty];
}
} catch (e) {
Expand Down

0 comments on commit 14bcd08

Please sign in to comment.