diff --git a/es-core/src/resources/TextureResource.cpp b/es-core/src/resources/TextureResource.cpp index 5b36c446a..06380d94c 100644 --- a/es-core/src/resources/TextureResource.cpp +++ b/es-core/src/resources/TextureResource.cpp @@ -179,7 +179,7 @@ std::shared_ptr TextureResource::get(const std::string& path, const bool isScalable {Utils::String::toLower(canonicalPath.substr( canonicalPath.size() - 4, std::string::npos)) == ".svg"}; - TextureKeyType key {canonicalPath, tile, linearMagnify, isScalable, width, height}; + TextureKeyType key {canonicalPath, tile, linearMagnify, mipmapping, isScalable, width, height}; auto foundTexture = sTextureMap.find(key); std::string resolutionInfo; diff --git a/es-core/src/resources/TextureResource.h b/es-core/src/resources/TextureResource.h index 11cafd835..978c44c87 100644 --- a/es-core/src/resources/TextureResource.h +++ b/es-core/src/resources/TextureResource.h @@ -105,8 +105,8 @@ private: bool mInvalidSVGFile; bool mForceLoad; - // File path, tile, linear interpolation, scalable/SVG, width, height. - using TextureKeyType = std::tuple; + // File path, tile, linear interpolation, mipmapping, scalable/SVG, width, height. + using TextureKeyType = std::tuple; // Map of textures, used to prevent duplicate textures. static inline std::map> sTextureMap; // Set of all textures, used for memory management.