diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2025-02-10 18:20:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 17:20:27 +0000 |
commit | 0fed99590a9377d8be071e457ecb1b3284f9ef27 (patch) | |
tree | f137190d69c099b65250ad078cee8b1426ed6b3a /components/script/dom/webxr/xrwebgllayer.rs | |
parent | 90130315a771cf2d52c982523721162f007a400c (diff) | |
download | servo-0fed99590a9377d8be071e457ecb1b3284f9ef27.tar.gz servo-0fed99590a9377d8be071e457ecb1b3284f9ef27.zip |
Revert "Use surfman with glow bindings (#34328)" (#35402)
This reverts commit 503bb10c5b1fafe01ebfb6b320902be2e8671c69.
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/webxr/xrwebgllayer.rs')
-rw-r--r-- | components/script/dom/webxr/xrwebgllayer.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/webxr/xrwebgllayer.rs b/components/script/dom/webxr/xrwebgllayer.rs index ab99a34d2ed..0cc8cfa8842 100644 --- a/components/script/dom/webxr/xrwebgllayer.rs +++ b/components/script/dom/webxr/xrwebgllayer.rs @@ -152,7 +152,8 @@ impl XRWebGLLayer { let sub_images = frame.get_sub_images(self.layer_id()?)?; let session = self.session(); // TODO: Cache this texture - let color_texture_id = WebGLTextureId::new(sub_images.sub_image.as_ref()?.color_texture?); + let color_texture_id = + WebGLTextureId::maybe_new(sub_images.sub_image.as_ref()?.color_texture)?; let color_texture = WebGLTexture::new_webxr(context, color_texture_id, session); let target = self.texture_target(); @@ -186,7 +187,7 @@ impl XRWebGLLayer { .ok()?; if let Some(id) = sub_images.sub_image.as_ref()?.depth_stencil_texture { // TODO: Cache this texture - let depth_stencil_texture_id = WebGLTextureId::new(id); + let depth_stencil_texture_id = WebGLTextureId::maybe_new(id)?; let depth_stencil_texture = WebGLTexture::new_webxr(context, depth_stencil_texture_id, session); framebuffer |