#pragma once
#include "ResourceDX11.h"
   
namespace Mile
{
   class MEAPI BufferDX11 : public ResourceDX11
   {
   public:
      BufferDX11( RendererDX11* renderer ) : 
         m_buffer( nullptr ),
         ResourceDX11( renderer )
      {
      }

      ~BufferDX11( )
      {
         SafeRelease( m_buffer );
      }

      virtual ID3D11Resource* GetResource( ) override;
      D3D11_BUFFER_DESC GetDesc( ) const { return m_desc; }

      virtual void* Map( ) { return nullptr;  }
      virtual bool UnMap( ) { return false; }

   protected:
      ID3D11Buffer*     m_buffer;
      D3D11_BUFFER_DESC m_desc;

   };
}
#pragma once
#include "ResourceDX11.h"
   
namespace Mile
{
   class MEAPI BufferDX11 : public ResourceDX11
   {
   public:
      BufferDX11( RendererDX11* renderer ) : 
         m_buffer( nullptr ),
         ResourceDX11( renderer )
      {
      }

      ~BufferDX11( )
      {
         SafeRelease( m_buffer );
      }

      virtual ID3D11Resource* GetResource( ) override;
      D3D11_BUFFER_DESC GetDesc( ) const { return m_desc; }

      virtual void* Map( ) { return nullptr;  }
      virtual void UnMap( ) { }

   protected:
      ID3D11Buffer*     m_buffer;
      D3D11_BUFFER_DESC m_desc;

   };
}
--- 
+++ 
@@ -21,7 +21,7 @@
       D3D11_BUFFER_DESC GetDesc( ) const { return m_desc; }
 
       virtual void* Map( ) { return nullptr;  }
-      virtual void UnMap( ) { }
+      virtual bool UnMap( ) { return false; }
 
    protected:
       ID3D11Buffer*     m_buffer;
Modify UnMap function return boolean value that succesfully unmaped.
