remove get_rooted() and replace all references to it with references to get()

This commit is contained in:
rohan.prinja 2015-10-29 21:48:39 +09:00
parent 430578355b
commit 4a4f041948
11 changed files with 28 additions and 34 deletions

View file

@ -145,8 +145,8 @@ impl WebGLRenderingContext {
pub fn bound_texture_for(&self, target: u32) -> Option<Root<WebGLTexture>> {
match target {
constants::TEXTURE_2D => self.bound_texture_2d.get_rooted(),
constants::TEXTURE_CUBE_MAP => self.bound_texture_cube_map.get_rooted(),
constants::TEXTURE_2D => self.bound_texture_2d.get(),
constants::TEXTURE_CUBE_MAP => self.bound_texture_cube_map.get(),
_ => unreachable!(),
}