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

Unified Diff: samples/o3d-webgl/effect.js

Issue 3035012: These changes are needed for when we turn on REAL ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 5 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 | samples/o3d-webgl/texture.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl/effect.js
===================================================================
--- samples/o3d-webgl/effect.js (revision 53070)
+++ samples/o3d-webgl/effect.js (working copy)
@@ -204,9 +204,9 @@
var success = true;
var shader = this.gl.createShader(type);
- this.gl.shaderSource(shader, shaderString);
+ this.gl.shaderSource(
+ shader, "#ifdef GL_ES\nprecision highp float;\n#endif\n" + shaderString);
this.gl.compileShader(shader);
-
if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {
success = false;
var log = this.gl.getShaderInfoLog(shader);
« no previous file with comments | « no previous file | samples/o3d-webgl/texture.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698