aboutsummaryrefslogtreecommitdiff
path: root/include/ResourceCache.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-28 17:15:24 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-28 17:15:30 +0200
commit68dcd3c4e17355e1c2b640fe1382743d7cb61ea2 (patch)
treefdf108e1d9f8478e34c4336dbaf21715c3b6f61f /include/ResourceCache.hpp
parent9d84d5d8e7f61a02c01eef021ea5e8b2f49dcf8f (diff)
Use font pointer instead of copy to reduce memory usage, sfml ffs
Diffstat (limited to 'include/ResourceCache.hpp')
-rw-r--r--include/ResourceCache.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ResourceCache.hpp b/include/ResourceCache.hpp
index 7361862..de35500 100644
--- a/include/ResourceCache.hpp
+++ b/include/ResourceCache.hpp
@@ -17,7 +17,7 @@ namespace dchat
{
public:
// Throws FailedToLoadResourceException on failure
- static const sf::Font& getFont(const std::string &filepath);
+ static const sf::Font* getFont(const std::string &filepath);
// Throws FailedToLoadResourceException on failure
static sf::Texture* getTexture(const std::string &filepath);