webgl: Make bind* calls more spec-compliant

This commit is contained in:
ecoal95 2015-06-15 00:22:15 +02:00
parent b1765c6882
commit 42bd43a696
8 changed files with 72 additions and 37 deletions

View file

@ -69,7 +69,7 @@ pub trait WebGLShaderHelpers {
fn set_source(self, src: String);
}
impl<'a> WebGLShaderHelpers for JSRef<'a, WebGLShader> {
impl<'a> WebGLShaderHelpers for &'a WebGLShader {
fn id(self) -> u32 {
self.id
}