Kaydet (Commit) 4e07c7e2 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

coverity#1358428 fix "Null pointer dereferences"

Change-Id: I629ff54ea721f4d9626258690767088b1abfb0c6
üst 3c3bd96c
...@@ -398,11 +398,11 @@ void OpenGLTexture::FillCoords<GL_TRIANGLES>(std::vector<GLfloat>& aCoord, const ...@@ -398,11 +398,11 @@ void OpenGLTexture::FillCoords<GL_TRIANGLES>(std::vector<GLfloat>& aCoord, const
GLfloat y1 = 0.0f; GLfloat y1 = 0.0f;
GLfloat y2 = 0.0f; GLfloat y2 = 0.0f;
double fTextureWidth(mpImpl->mnWidth);
double fTextureHeight(mpImpl->mnHeight);
if (mpImpl) if (mpImpl)
{ {
double fTextureWidth(mpImpl->mnWidth);
double fTextureHeight(mpImpl->mnHeight);
x1 = (maRect.Left() + rPosAry.mnSrcX) / fTextureWidth; x1 = (maRect.Left() + rPosAry.mnSrcX) / fTextureWidth;
x2 = (maRect.Left() + rPosAry.mnSrcX + rPosAry.mnSrcWidth) / fTextureWidth; x2 = (maRect.Left() + rPosAry.mnSrcX + rPosAry.mnSrcWidth) / fTextureWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment