mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: Make bind* calls more spec-compliant
This commit is contained in:
parent
b1765c6882
commit
42bd43a696
8 changed files with 72 additions and 37 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue