Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: o3d-webgl/skin.js

Issue 3348006: o3djs: Recommit effect.js for skinning shader.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/samples/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | o3djs/effect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d-webgl/skin.js
===================================================================
--- o3d-webgl/skin.js (revision 59332)
+++ o3d-webgl/skin.js (working copy)
@@ -412,6 +412,9 @@
// The value must be at least 128. See glUniform.
var gl = obj.gl;
var maxVertexUniformVectors = gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS);
+ if (!maxVertexUniformVectors) {
+ maxVertexUniformVectors = 128;
+ }
return Math.floor((maxVertexUniformVectors - 32) / 3);
};
« no previous file with comments | « no previous file | o3djs/effect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698