aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglshader.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-07-30 15:57:31 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-07-31 11:12:45 +0200
commit76f23f7d78b7d92f7a9c18ec873ac57e7b548dfa (patch)
treeee73993c375df04921a0d3875a5350cd015148ac /components/script/dom/webglshader.rs
parenta0fc4c98321be216dca4228b91baadc2cb0a9b2a (diff)
downloadservo-76f23f7d78b7d92f7a9c18ec873ac57e7b548dfa.tar.gz
servo-76f23f7d78b7d92f7a9c18ec873ac57e7b548dfa.zip
Simplify gl.getShaderParameter() (fixes #20562)
The expectation change is due to the shader now using its DOM-side compile status. It is actually a bug for the shader to think it actually compiled successfully, but at least it does so consistently now.
Diffstat (limited to 'components/script/dom/webglshader.rs')
-rw-r--r--components/script/dom/webglshader.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/webglshader.rs b/components/script/dom/webglshader.rs
index 558d43c220c..c3ca74fde1f 100644
--- a/components/script/dom/webglshader.rs
+++ b/components/script/dom/webglshader.rs
@@ -192,6 +192,10 @@ impl WebGLShader {
}
}
+ pub fn is_marked_for_deletion(&self) -> bool {
+ self.marked_for_deletion.get()
+ }
+
pub fn is_deleted(&self) -> bool {
self.marked_for_deletion.get() && !self.is_attached()
}