diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-09-06 18:57:58 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-12-09 16:50:37 -0500 |
| commit | 58a53951735aba77899ea8f8910a6b68dc52449a (patch) | |
| tree | 48feeeeb9ce83b66213cf37d4c605ef1d5595244 /Source/Core/VideoBackends/OGL/TextureCache.cpp | |
| parent | 1fa61af41329652ee92030825f9347d3d3f7ce93 (diff) | |
TextureCacheBase: Eliminate static state
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureCache.cpp b/Source/Core/VideoBackends/OGL/TextureCache.cpp index dc9d290f3e..6c018634d7 100644 --- a/Source/Core/VideoBackends/OGL/TextureCache.cpp +++ b/Source/Core/VideoBackends/OGL/TextureCache.cpp @@ -178,8 +178,8 @@ void TextureCache::TCacheEntry::CopyRectangleFromTexture(const TCacheEntryBase* g_renderer->RestoreAPIState(); } -void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height, - unsigned int expanded_width, unsigned int level) +void TextureCache::TCacheEntry::Load(const u8* buffer, u32 width, u32 height, u32 expanded_width, + u32 level) { if (level >= config.levels) PanicAlert("Texture only has %d levels, can't update level %d", config.levels, level); @@ -196,7 +196,7 @@ void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height, glPixelStorei(GL_UNPACK_ROW_LENGTH, expanded_width); glTexImage3D(GL_TEXTURE_2D_ARRAY, level, GL_RGBA, width, height, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, - temp); + buffer); if (expanded_width != width) glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); |
