summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-12-27 16:32:32 +0100
committerJosJuice <josjuice@gmail.com>2018-05-20 13:44:38 +0200
commit17e65a7167caaf9d55ae7ea0141c298d02689ea2 (patch)
treea85016919258539bddc6d3847fe8932c6d882361 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent0706add5840edcc7faeca538dafcd4f56cee7940 (diff)
VideoCommon: Replace SOIL with libpng for hires textures
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index e68b408cff..48518911bd 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -957,8 +957,8 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo
if (hires_tex)
{
const auto& level = hires_tex->m_levels[0];
- entry->texture->Load(0, level.width, level.height, level.row_length, level.data.get(),
- level.data_size);
+ entry->texture->Load(0, level.width, level.height, level.row_length, level.data.data(),
+ level.data.size());
}
// Initialized to null because only software loading uses this buffer
@@ -1042,7 +1042,7 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo
{
const auto& level = hires_tex->m_levels[level_index];
entry->texture->Load(level_index, level.width, level.height, level.row_length,
- level.data.get(), level.data_size);
+ level.data.data(), level.data.size());
}
}
else