Bugfix in link_program
@@ -14,9 +14,6 @@ use crate::consts::Gl as InnerGl;
// WEBGL
-#[cfg(target_arch = "wasm32")]
-use wasm_bindgen::prelude::*;
-
#[cfg(target_arch = "wasm32")]
use web_sys::WebGl2RenderingContext as InnerGl;
@@ -110,12 +107,12 @@ impl Gl {
pub fn link_program(&self, program: &Program) -> Result<(), String>
{
- self.link_program(program);
- if self.get_program_parameter(program, consts::LINK_STATUS).as_bool().unwrap_or(false)
+ self.inner.link_program(program);
+ if self.inner.get_program_parameter(program, consts::LINK_STATUS).as_bool().unwrap_or(false)
{
Ok(())
} else {
- Err(self.get_program_info_log(program).unwrap_or_else(|| "Unknown error creating program object".into()))
+ Err(self.inner.get_program_info_log(program).unwrap_or_else(|| "Unknown error creating program object".into()))
}
}
