File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,16 @@ impl super::Queue {
101
101
let num_layers = view. array_layers . end - view. array_layers . start ;
102
102
if num_layers > 1 {
103
103
#[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ]
104
- gl. framebuffer_texture_multiview_ovr (
105
- fbo_target,
106
- attachment,
107
- Some ( raw) ,
108
- view. mip_levels . start as i32 ,
109
- view. array_layers . start as i32 ,
110
- num_layers as i32 ,
111
- ) ;
104
+ unsafe {
105
+ gl. framebuffer_texture_multiview_ovr (
106
+ fbo_target,
107
+ attachment,
108
+ Some ( raw) ,
109
+ view. mip_levels . start as i32 ,
110
+ view. array_layers . start as i32 ,
111
+ num_layers as i32 ,
112
+ )
113
+ } ;
112
114
} else if is_layered_target ( target) {
113
115
unsafe {
114
116
gl. framebuffer_texture_layer (
@@ -1094,9 +1096,9 @@ impl super::Queue {
1094
1096
}
1095
1097
C :: SetAlphaToCoverage ( enabled) => {
1096
1098
if enabled {
1097
- gl. enable ( glow:: SAMPLE_ALPHA_TO_COVERAGE ) ;
1099
+ unsafe { gl. enable ( glow:: SAMPLE_ALPHA_TO_COVERAGE ) } ;
1098
1100
} else {
1099
- gl. disable ( glow:: SAMPLE_ALPHA_TO_COVERAGE ) ;
1101
+ unsafe { gl. disable ( glow:: SAMPLE_ALPHA_TO_COVERAGE ) } ;
1100
1102
}
1101
1103
}
1102
1104
C :: SetProgram ( program) => {
You can’t perform that action at this time.
0 commit comments