diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-11 16:37:25 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-04-11 16:44:49 +0900 |
commit | 4e07c7e279b21c4ae93b832a65e221e2dab5391d (patch) | |
tree | 82f702292fb791996d9d018d2f6a3195a5e564e6 /vcl | |
parent | 3c3bd96ce8e95f0572b7b3a78c2ca1c4fb977802 (diff) |
coverity#1358428 fix "Null pointer dereferences"
Change-Id: I629ff54ea721f4d9626258690767088b1abfb0c6
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/texture.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index b3a36263271b..38ff8f7bd3fb 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -398,11 +398,11 @@ void OpenGLTexture::FillCoords<GL_TRIANGLES>(std::vector<GLfloat>& aCoord, const GLfloat y1 = 0.0f; GLfloat y2 = 0.0f; - double fTextureWidth(mpImpl->mnWidth); - double fTextureHeight(mpImpl->mnHeight); - if (mpImpl) { + double fTextureWidth(mpImpl->mnWidth); + double fTextureHeight(mpImpl->mnHeight); + x1 = (maRect.Left() + rPosAry.mnSrcX) / fTextureWidth; x2 = (maRect.Left() + rPosAry.mnSrcX + rPosAry.mnSrcWidth) / fTextureWidth; |