Kaydet (Commit) af26bb77 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1255388 Division or modulo by float zero

and

coverity#1255387 Division or modulo by float zero

Change-Id: I86c6d5874a7a2c2eecefe7f786edff89ff50ffbf
üst ecc56da3
...@@ -727,6 +727,9 @@ void OpenGLSalGraphicsImpl::DrawTransformedTexture( ...@@ -727,6 +727,9 @@ void OpenGLSalGraphicsImpl::DrawTransformedTexture(
const basegfx::B2DPoint& rX, const basegfx::B2DPoint& rX,
const basegfx::B2DPoint& rY ) const basegfx::B2DPoint& rY )
{ {
if (!rTexture.GetWidth() || !rTexture.GetHeight())
return;
const basegfx::B2DVector aXRel = rX - rNull; const basegfx::B2DVector aXRel = rX - rNull;
const basegfx::B2DVector aYRel = rY - rNull; const basegfx::B2DVector aYRel = rY - rNull;
const float aValues[] = { const float aValues[] = {
......
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