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

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

Issue 3038014: o3d-webgl: Adjusting Sampler to throw an error if client attempts to use BORD... (Closed) Base URL: svn://chrome-svn/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 | « samples/o3d-webgl-samples/texturesamplers.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/o3d-webgl/sampler.js
===================================================================
--- samples/o3d-webgl/sampler.js (revision 53812)
+++ samples/o3d-webgl/sampler.js (working copy)
@@ -180,10 +180,9 @@
gl_mode = this.gl.CLAMP_TO_EDGE;
break;
case o3d.Sampler.BORDER:
- gl_mode = this.gl.CLAMP_TO_BORDER;
- break;
+ // This is not supported in WebGL.
default:
- this.gl.client.error_callback("Unknown Address mode");
+ this.gl.client.error_callback("Unknown/Unavailable Address mode");
break;
}
return gl_mode;
« no previous file with comments | « samples/o3d-webgl-samples/texturesamplers.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698