rust/lib-hedgewars-engine/src/render/gl.rs
changeset 15307 16bd389fc735
parent 15306 6382a14c9e83
child 15310 fd20e0a134af
--- a/rust/lib-hedgewars-engine/src/render/gl.rs	Sat Aug 03 00:54:29 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/render/gl.rs	Sat Aug 03 01:13:45 2019 +0300
@@ -63,7 +63,7 @@
 }
 
 impl Texture2D {
-    pub fn new(size: Size, internal_format: u32, format: u32, ty: u32, filter: u32) -> Self {
+    pub fn new(size: Size, internal_format: u32, filter: u32) -> Self {
         if let Some(handle) = new_texture() {
             unsafe {
                 gl::BindTexture(gl::TEXTURE_2D, handle.get());
@@ -74,8 +74,8 @@
                     size.width as i32,
                     size.height as i32,
                     0,
-                    format as u32,
-                    ty,
+                    gl::RGBA,
+                    gl::UNSIGNED_BYTE,
                     std::ptr::null(),
                 )
             }