summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl/AccumulatedTextures.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/opengl/AccumulatedTextures.hxx')
-rw-r--r--vcl/inc/opengl/AccumulatedTextures.hxx4
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());