aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-09-19 12:32:11 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-09-20 11:31:54 +0200
commita3d8b5d2d3c3b50e2c357b9dfd491acee78cb593 (patch)
treeff1a076db7d4b899927d9f3808cc5a7b7c9bcc20 /components/script/dom/webglprogram.rs
parent943f95fe4717459c845df7f6a10a039e5adf8e97 (diff)
downloadservo-a3d8b5d2d3c3b50e2c357b9dfd491acee78cb593.tar.gz
servo-a3d8b5d2d3c3b50e2c357b9dfd491acee78cb593.zip
Fix the error when calling getProgramInfoLog on a deleted program (#20561)
Diffstat (limited to 'components/script/dom/webglprogram.rs')
-rw-r--r--components/script/dom/webglprogram.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webglprogram.rs b/components/script/dom/webglprogram.rs
index e6cf894feca..3c2a17ca4fb 100644
--- a/components/script/dom/webglprogram.rs
+++ b/components/script/dom/webglprogram.rs
@@ -414,7 +414,7 @@ impl WebGLProgram {
/// glGetProgramInfoLog
pub fn get_info_log(&self) -> WebGLResult<String> {
if self.is_deleted() {
- return Err(WebGLError::InvalidOperation);
+ return Err(WebGLError::InvalidValue);
}
if self.link_called.get() {
let shaders_compiled = match (self.fragment_shader.get(), self.vertex_shader.get()) {