فهرست منبع

Deallocate texture on unload

Daniele Bartolini 11 سال پیش
والد
کامیت
d0e041ea3b
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      engine/resource/texture_resource.h

+ 2 - 1
engine/resource/texture_resource.h

@@ -91,8 +91,9 @@ struct TextureResource
 	}
 	}
 	
 	
 	//-----------------------------------------------------------------------------
 	//-----------------------------------------------------------------------------
-	static void unload(Allocator& /*a*/, void* /*resource*/)
+	static void unload(Allocator& a, void* resource)
 	{
 	{
+		a.deallocate(resource);
 	}
 	}
 
 
 private:
 private: