mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix the error when calling getProgramInfoLog on a deleted program (#20561)
This commit is contained in:
parent
943f95fe47
commit
a3d8b5d2d3
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue