diff options
| author | degasus <wickmarkus@web.de> | 2014-05-19 22:35:53 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-01-10 12:21:33 +0100 |
| commit | 614d058db14f4a282e27a8c21402f45cfaa5be88 (patch) | |
| tree | fa4caafdbe12045491febc36db37d98e01a46d0d /Source/Core/VideoBackends/OGL/TextureCache.cpp | |
| parent | 8bdbe37c91b9c642ab2a3f4cbe265a9455870366 (diff) | |
TexCache: don't load tex level 0 on creation
This reverts an optimization which isn't worth imo. Every texture uploads have to alloc vram and a staging buffer, so there is no need to do both in the same call.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureCache.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureCache.cpp b/Source/Core/VideoBackends/OGL/TextureCache.cpp index 4199604cd0..0cea0d556a 100644 --- a/Source/Core/VideoBackends/OGL/TextureCache.cpp +++ b/Source/Core/VideoBackends/OGL/TextureCache.cpp @@ -175,10 +175,7 @@ TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width, glBindTexture(GL_TEXTURE_2D_ARRAY, entry.texture); glTexParameteri(GL_TEXTURE_2D_ARRAY, GL_TEXTURE_MAX_LEVEL, tex_levels - 1); - entry.Load(width, height, expanded_width, 0); - - // This isn't needed as Load() also reset the stage in the end - //TextureCache::SetStage(); + TextureCache::SetStage(); return &entry; } |
