@@ -93,7 +93,7 @@ make_dispatch! {
93
93
#[ cfg( target_os = "macos" ) ]
94
94
CG ( ( ) , cg:: CGImpl ) ,
95
95
#[ cfg( target_arch = "wasm32" ) ]
96
- Web ( ( ) , web:: WebImpl ) ,
96
+ Web ( web :: WebDisplayImpl , web:: WebImpl ) ,
97
97
#[ cfg( target_os = "redox" ) ]
98
98
Orbital ( ( ) , orbital:: OrbitalImpl ) ,
99
99
}
@@ -134,7 +134,7 @@ impl Context {
134
134
#[ cfg( target_os = "macos" ) ]
135
135
RawDisplayHandle :: AppKit ( _) => ContextDispatch :: CG ( ( ) ) ,
136
136
#[ cfg( target_arch = "wasm32" ) ]
137
- RawDisplayHandle :: Web ( _) => ContextDispatch :: Web ( ( ) ) ,
137
+ RawDisplayHandle :: Web ( _) => ContextDispatch :: Web ( web :: WebDisplayImpl :: new ( ) ? ) ,
138
138
#[ cfg( target_os = "redox" ) ]
139
139
RawDisplayHandle :: Orbital ( _) => ContextDispatch :: Orbital ( ( ) ) ,
140
140
unimplemented_display_handle => {
@@ -212,8 +212,8 @@ impl Surface {
212
212
SurfaceDispatch :: CG ( unsafe { cg:: CGImpl :: new ( appkit_handle) ? } )
213
213
}
214
214
#[ cfg( target_arch = "wasm32" ) ]
215
- ( ContextDispatch :: Web ( ( ) ) , RawWindowHandle :: Web ( web_handle) ) => {
216
- SurfaceDispatch :: Web ( web:: WebImpl :: new ( web_handle) ?)
215
+ ( ContextDispatch :: Web ( context ) , RawWindowHandle :: Web ( web_handle) ) => {
216
+ SurfaceDispatch :: Web ( web:: WebImpl :: new ( context , web_handle) ?)
217
217
}
218
218
#[ cfg( target_os = "redox" ) ]
219
219
( ContextDispatch :: Orbital ( ( ) ) , RawWindowHandle :: Orbital ( orbital_handle) ) => {
0 commit comments