mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-29 05:13:07 -08:00
Support older libstdc++
This commit is contained in:
1 parent
ce21f578a1
commit
d830d3bdd0
1 file changed
+3
-1
@@ -269,7 +269,9 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
|
||||
if (magic == ICO_PNG_MAGIC)
|
||||
{
|
||||
// PNG file
|
||||
return {std::from_range, best_entry.data};
|
||||
std::vector<std::byte> png_data;
|
||||
png_data.insert(png_data.end(), data.begin(), data.end());
|
||||
return png_data;
|
||||
}
|
||||
else if (magic == 40)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user