rust/lib-hedgewars-engine/src/render/gl.rs
changeset 15786 b10bbfb2b354
parent 15784 84c07aa94b61
--- a/rust/lib-hedgewars-engine/src/render/gl.rs	Fri Nov 13 20:59:13 2020 +0300
+++ b/rust/lib-hedgewars-engine/src/render/gl.rs	Sat Nov 14 03:46:01 2020 +0300
@@ -173,10 +173,6 @@
         format: TextureFormat,
         data_type: TextureDataType,
     ) {
-        if is_out_of_bounds(data, data_stride, self.size) {
-            return;
-        }
-
         if let Some(handle) = self.handle {
             unsafe {
                 gl::BindTexture(gl::TEXTURE_2D, handle.get());