diff options
Diffstat (limited to 'vcl/opengl/salbmp.cxx')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index b9b7a5f0b457..e317004c9470 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -402,11 +402,11 @@ void lclInstantiateTexture(OpenGLTexture& rTexture, const int nWidth, const int sTextureAtlases.push_back(std::unique_ptr<FixedTextureAtlasManager>(new FixedTextureAtlasManager(8, 8, 48))); sTextureAtlases.push_back(std::unique_ptr<FixedTextureAtlasManager>(new FixedTextureAtlasManager(8, 8, 64))); } - for (size_t i = 0; i < sTextureAtlases.size(); i++) + for (std::unique_ptr<FixedTextureAtlasManager> & pTextureAtlas : sTextureAtlases) { - if (nWidth == sTextureAtlases[i]->GetSubtextureSize()) + if (nWidth == pTextureAtlas->GetSubtextureSize()) { - rTexture = sTextureAtlases[i]->InsertBuffer(nWidth, nHeight, nFormat, nType, pData); + rTexture = pTextureAtlas->InsertBuffer(nWidth, nHeight, nFormat, nType, pData); return; } } |