diff options
-rw-r--r-- | vcl/inc/opengl/AccumulatedTextures.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/opengl/AccumulatedTextures.hxx b/vcl/inc/opengl/AccumulatedTextures.hxx index bc40c48f3ab0..882a69476db5 100644 --- a/vcl/inc/opengl/AccumulatedTextures.hxx +++ b/vcl/inc/opengl/AccumulatedTextures.hxx @@ -90,11 +90,11 @@ public: bool insert(OpenGLTexture& rTexture, const SalColor& aColor, const SalTwoRect& r2Rect) { - GLuint nTextureId = rTexture.Id(); - if (!rTexture) return false; + GLuint nTextureId = rTexture.Id(); + if (maEntries.find(nTextureId) == maEntries.end()) { OpenGLTexture aWholeTexture(rTexture.GetWholeTexture()); |