fix a nasty bug, due to uninitialized variable, sometimes the value was nan and the == passed, leading to some OpenGL error later on due to glScissors failing…

This commit is contained in:
Erwin Coumans
2014-03-20 22:10:58 -07:00
parent ae7ca56b40
commit 71c34eb332

View File

@@ -19,7 +19,7 @@
using namespace Gwen::Controls;
Canvas::Canvas( Gwen::Skin::Base* pSkin ) : BaseClass( NULL ), m_bAnyDelete( false )
Canvas::Canvas( Gwen::Skin::Base* pSkin ) : BaseClass( NULL ), m_bAnyDelete( false ),m_fScale(-1)
{
SetBounds( 0, 0, 10000, 10000 );
SetSkin( pSkin );