aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglshader.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-27 16:08:52 +0200
committerEmilio Cobos Álvarez <me@emiliocobos.me>2016-04-03 01:21:56 +0200
commit6fcc03c9659c7140b02ac9039d1646142161e234 (patch)
tree0061cde4cb1495fb9691c12744c571b8d765c3e4 /components/script/dom/webglshader.rs
parent8d7ee15acee6dba661880ba93551537cdc80bdaa (diff)
downloadservo-6fcc03c9659c7140b02ac9039d1646142161e234.tar.gz
servo-6fcc03c9659c7140b02ac9039d1646142161e234.zip
webgl: Make the api return the context limits and use them for validations
This allows keeping the VertexAttrib* calls asynchronous. Another option would be to do the validation in the apply() function, but that'd require us passing an unnecessary channel around and add extra synchronization. The counterpart of this is that it has to be updated when the context changes, but that's less problem.
Diffstat (limited to 'components/script/dom/webglshader.rs')
-rw-r--r--components/script/dom/webglshader.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/webglshader.rs b/components/script/dom/webglshader.rs
index 804dc3cdcf8..495417065d7 100644
--- a/components/script/dom/webglshader.rs
+++ b/components/script/dom/webglshader.rs
@@ -101,6 +101,7 @@ impl WebGLShader {
&BuiltInResources::default()).unwrap();
match validator.compile_and_translate(&[source]) {
Ok(translated_source) => {
+ debug!("Shader translated: {}", translated_source);
// NOTE: At this point we should be pretty sure that the compilation in the paint thread
// will succeed.
// It could be interesting to retrieve the info log from the paint thread though