mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
fixes dereferencing on an immutable reference (#31864)
This commit is contained in:
parent
585e0d69cd
commit
f7669b5238
32 changed files with 76 additions and 77 deletions
|
@ -147,7 +147,7 @@ impl WebGLFramebuffer {
|
|||
context: &WebGLRenderingContext,
|
||||
size: Size2D<i32, Viewport>,
|
||||
) -> Option<DomRoot<Self>> {
|
||||
let framebuffer = Self::maybe_new(&*context)?;
|
||||
let framebuffer = Self::maybe_new(context)?;
|
||||
framebuffer.size.set(Some((size.width, size.height)));
|
||||
framebuffer.status.set(constants::FRAMEBUFFER_COMPLETE);
|
||||
framebuffer.xr_session.set(Some(session));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue