Skip to content

Commit

Permalink
GRAPHICS: Initialize GUIQuad::_scissor*
Browse files Browse the repository at this point in the history
This fixes Coverity Scan issue #1383497.
  • Loading branch information
DrMcCoy committed Dec 3, 2017
1 parent 9a685b9 commit 3939f89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphics/aurora/guiquad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ GUIQuad::GUIQuad(const Common::UString &texture,
_r(1.0f), _g(1.0f), _b(1.0f), _a(1.0f),
_x1 (x1) , _y1 (y1) , _x2 (x2) , _y2 (y2) ,
_tX1(tX1), _tY1(tY1), _tX2(tX2), _tY2(tY2),
_scissorX(0), _scissorY(0), _scissorWidth(0), _scissorHeight(0),
_xor(false), _scissor(false), _additiveBlending(false) {

try {
Expand Down Expand Up @@ -68,6 +69,7 @@ GUIQuad::GUIQuad(TextureHandle texture,
_texture(texture), _r(1.0f), _g(1.0f), _b(1.0f), _a(1.0f),
_x1 (x1) , _y1 (y1) , _x2 (x2) , _y2 (y2) ,
_tX1(tX1), _tY1(tY1), _tX2(tX2), _tY2(tY2),
_scissorX(0), _scissorY(0), _scissorWidth(0), _scissorHeight(0),
_xor(false), _scissor(false) {

_distance = -FLT_MAX;
Expand Down

0 comments on commit 3939f89

Please sign in to comment.