From 453eac7f1f5ef70390ec51087fc1f190811a7507 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Nov 2021 09:47:45 +0100 Subject: Replace sfml with mgl --- src/SfmlFixes.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/SfmlFixes.cpp (limited to 'src/SfmlFixes.cpp') diff --git a/src/SfmlFixes.cpp b/src/SfmlFixes.cpp deleted file mode 100644 index d6d4b17..0000000 --- a/src/SfmlFixes.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "../include/SfmlFixes.hpp" -#include - -static std::mutex mutex; -namespace QuickMedia { - bool load_image_from_file(sf::Image &image, const std::string &filepath) { - std::lock_guard lock(mutex); - return image.loadFromFile(filepath); - } - - bool load_image_from_memory(sf::Image &image, const void *data, size_t size) { - std::lock_guard lock(mutex); - return image.loadFromMemory(data, size); - } -} \ No newline at end of file -- cgit v1.2.3