diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-07-30 15:57:31 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-07-31 11:12:45 +0200 |
commit | 76f23f7d78b7d92f7a9c18ec873ac57e7b548dfa (patch) | |
tree | ee73993c375df04921a0d3875a5350cd015148ac /components/script/dom/webglshader.rs | |
parent | a0fc4c98321be216dca4228b91baadc2cb0a9b2a (diff) | |
download | servo-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.rs | 4 |
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() } |