mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix: bring back connection method to fix WebGL texture error (#35358)
* Bring back connection method to fix texture error Signed-off-by: Wu Yuwei <yuweiwu@pm.me> * Print GL info in log instead Signed-off-by: Wu Yuwei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yuwei <yuweiwu@pm.me>
This commit is contained in:
parent
7a6953bc08
commit
b5b69988cc
3 changed files with 15 additions and 1 deletions
|
@ -48,7 +48,9 @@ impl WebGLComm {
|
|||
let webxr_init = crate::webxr::WebXRBridgeInit::new(sender.clone());
|
||||
#[cfg(feature = "webxr")]
|
||||
let webxr_layer_grand_manager = webxr_init.layer_grand_manager();
|
||||
let connection = surfman::Connection::new().expect("Failed to create connection");
|
||||
let connection = rendering_context
|
||||
.connection()
|
||||
.expect("Failed to get connection");
|
||||
let adapter = connection
|
||||
.create_adapter()
|
||||
.expect("Failed to create adapter");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue