mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove get_rooted() and replace all references to it with references to get()
This commit is contained in:
parent
430578355b
commit
4a4f041948
11 changed files with 28 additions and 34 deletions
|
@ -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!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue