File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ struct GlCache {
40
40
pub viewport : Option < UVec2 > ,
41
41
pub blend_mode : Option < BlendMode > ,
42
42
pub program : Option < glow:: Program > ,
43
- pub vao : Option < glow:: VertexArray > ,
44
43
pub albedo : Option < TextureId > ,
45
44
}
46
45
@@ -97,14 +96,6 @@ impl GlCache {
97
96
}
98
97
}
99
98
100
- pub fn update_vao ( & mut self , vao : glow:: VertexArray ) -> bool {
101
- if let Some ( prev_vao) = self . vao . replace ( vao) {
102
- prev_vao != vao
103
- } else {
104
- true
105
- }
106
- }
107
-
108
99
pub fn update_albedo ( & mut self , albedo : TextureId ) -> bool {
109
100
if let Some ( prev_texture) = self . albedo . replace ( albedo) {
110
101
prev_texture != albedo
@@ -577,8 +568,6 @@ impl InoxRenderer for OpenglRenderer {
577
568
todo ! ( )
578
569
} else {
579
570
unsafe {
580
- gl. bind_vertex_array ( Some ( self . vao ) ) ;
581
-
582
571
gl. active_texture ( glow:: TEXTURE0 ) ;
583
572
gl. bind_texture ( glow:: TEXTURE_2D , Some ( self . cf_albedo ) ) ;
584
573
gl. active_texture ( glow:: TEXTURE1 ) ;
You can’t perform that action at this time.
0 commit comments