gfx: return formats by reference
This commit is contained in:
parent
b921c81e5d
commit
0f556fc054
7 changed files with 12 additions and 12 deletions
|
|
@ -103,8 +103,8 @@ impl GfxContext for TestGfxCtx {
|
|||
None
|
||||
}
|
||||
|
||||
fn formats(&self) -> Rc<AHashMap<u32, GfxFormat>> {
|
||||
self.formats.clone()
|
||||
fn formats(&self) -> &Rc<AHashMap<u32, GfxFormat>> {
|
||||
&self.formats
|
||||
}
|
||||
|
||||
fn fast_ram_access(&self) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue