rust/lib-hedgewars-engine/src/render/map.rs
changeset 15761 e7eb0cd5b0e4
parent 15760 ff1432e873bd
child 15762 84c07aa94b61
--- a/rust/lib-hedgewars-engine/src/render/map.rs	Thu Nov 12 23:42:53 2020 +0300
+++ b/rust/lib-hedgewars-engine/src/render/map.rs	Fri Nov 13 02:52:15 2020 +0300
@@ -5,8 +5,9 @@
 use super::{
     camera::Camera,
     gl::{
-        Buffer, InputElement, InputFormat, InputLayout, PipelineState, Shader, Texture2D,
-        TextureDataType, TextureFilter, TextureFormat, TextureInternalFormat, VariableBinding,
+        Buffer, BufferType, BufferUsage, InputElement, InputFormat, InputLayout, PipelineState,
+        Shader, Texture2D, TextureDataType, TextureFilter, TextureFormat, TextureInternalFormat,
+        VariableBinding,
     },
 };
 
@@ -126,8 +127,8 @@
             tiles: Vec::new(),
             textures: Vec::new(),
 
-            tile_vertex_buffer: Buffer::empty(gl::ARRAY_BUFFER, gl::DYNAMIC_DRAW),
-            tile_index_buffer: Buffer::empty(gl::ELEMENT_ARRAY_BUFFER, gl::DYNAMIC_DRAW),
+            tile_vertex_buffer: Buffer::empty(BufferType::Array, BufferUsage::DynamicDraw),
+            tile_index_buffer: Buffer::empty(BufferType::ElementArray, BufferUsage::DynamicDraw),
             tile_vertices: Vec::new(),
             tile_indices: Vec::new(),
             index_offset: 0,